dynamic cast.

It’s ok, I solved it. Casting to the base class maintained the properties I required.