How to force an actor array to recognize a class

Okay, I found a work-around, but this seems clunky, is there an easier less code consuming way to do this?

342998-code-screenshot-2.png