Need Help in Casting in `uvm_info

In reply to MaheshBabu:

counter1 is a uvm_object with several data fields. Using the object name for displaying the name will not work. But the uvm_reg provides you with a convinient function to display the name: get_name().