i want to know how exactly a do_copy method works? what is the need of $cast(rhs_, rhs)?
and also why to call the super.do_copy(rhs)??
function void write_xtn::do_copy (uvm_object rhs);
// handle for overriding the variable
`uvm_fatal("do_copy","cast of the rhs object failed")