How can I change driver type in an agent, if both are extended from uvm_driver

In reply to akhil_dv:

You can instantiate uvm_driver in releases after UVM 1.2 because none of the uvm_ classes were registered with the factory prior to that.

But it would be better to create your own driver base class to handle common procedures like setting up your virtual interfaces, etc.