Dynamic type casting Error

In reply to siddu Angadi:

I guess your testenv is extended from uvm_component. Right?
And the type testenv is parameterized with a parameter `a, i.e testenv is parameterized but uvm_component is not parameterzied. This causes the cast error.