Need help with blueprint logic

Hey guys, please could someone help me with this blueprints.

I have a AIController, and want to check some info of my actors before define their targets. the problem is, my actors are childs of a base class, so it’s not working when I cast to this base class, only if I convert to each of the child BP.

this is the first part, where I need to check the target type of my actor

after that I get all player “bases” that inherits hqbase, and break on the first one. I didn’t like this part as I did, but is the only way I found to make works

if someone knows a better way, I appreciate a lot.

I figured out the first part. now its better and works on child actors