Cast To asset menu won't work

No, it’s an input pin.
It wants you to provide an object for it to look at.

So you can’t just give it a class,
you need to give it a reference to an object that exist somewhere in your game-world.