How to find the top level class from widget?

If you create a parent actor for your blueprint actor and make it a child, then you can cast to the parent anywhere you like and you’ll always have a connection to its children essentially meaning you never need to figure out what the top-level class is because you know.
What exactly are you trying to accomplish?