Type mismatch/invalid pin connection

Hello! I’m having a bit of an issue with an array I’ve set up. It’s very simple: Get all actors of a class and assign each index to a different variable. This works flawlessly when using the default SideScrollerCharacter class, as seen here:

When I try to switch to any other class, I get “Type mismatch between pins Target Array and Out Actors” as well as “Invalid pin connection from ‘Out Actors’ to ‘Target Array’. You may have changed the type after the connections were made.”

This breaks the entire actor. I’ve tried it with multiple characters, even with a duplicate of the one that works, and nothing fixes it. I’ve checked my GameMode and Level and adjusted my Default Pawn Class depending on which class I’m trying to get to no avail. I don’t know if it’s a simple bug or if I’m missing something, but any help would be greatly appreciated. Thanks in advance!

Have you tried using a for loop instead and then a switch on int inside that?

Hadn’t even thought of it. This was perfect. Thanks a million!