In reply to Gangaraju M:
You do the $cast because rhs is of type uvm_object and rhs_ is of type write_xtn.
You can call super.do_copy, but don’t have to do this. super.do_copy is in your case the do_copy of the base class.
In reply to Gangaraju M:
You do the $cast because rhs is of type uvm_object and rhs_ is of type write_xtn.
You can call super.do_copy, but don’t have to do this. super.do_copy is in your case the do_copy of the base class.