Knowing Which Class is Pawned

Hi,

I have 3 different classes that uses the same AI. I spawned these classes and then I’d like to know which class is based on the owned pawn. This is the blueprint that I use:

However, this always fails. I noticed when debugging that the flow never goes past the 3 Cast To … So I think there’s something wrong in how I choose the classes. Is there any other way to do this?

Sorry if it’s silly, I’m pretty new to Unreal atm.

Thanks