Dynamic cast fail

In reply to UVM_LOVE:

The “data” field is only existed in child class. You are unable to access it from parent class.
An class only can access its own attributes and its parent attributes.

I don’t know why you want to access “data” from parent_class?