Cast to (insert class/blueprint name here)

You can’t dynamicly cast to some class (which i think what you mean by saying “depends”), but it think there might be possibility to develop such a node in C++ from UK2Node class. You can reduce casting by building more developed base classes or more specific base classes in base classes, for example Item class have subclass Weapon and then subclass RailGun.