Confusion over casting of classes

In reply to dave_59:

Thanks Dave. I think they have this common transaction class which was extended with
read and write named classes. These classes are then used in sequences.

With IUS

$cast(m_trx, super);

was not giving error.
Thanks again for the solution.

Regards,
Chandan