Automatic CastTo generation and simple CastTo node representation

Hi,

When you try to connect an Actor to a Class parameter thats inherits from Actor you have to cast the Actor first (of course ^^)

At the moment if you try to connect Actor to MyClass it says that it is not possible. We have to manually create a CastTo MyClass and do the connections.

It could be awesome when you try to connect different class types that the editor asks you to automatically create the “CastTo” if is is possible and do the connections for you : Time saver !

I have also another request. I think that the CastTo (even in pure mode) is too big. Sometimes you cast an object and you are 100% sure that the object type is the casted one. You don’t need to check if the cast as failed because as a developper you are 100% sure that the cast will success. In that case I would like to have the smallest representation possible of the cast on the graph because this information is not important for me. It could be a very small node with only the name of Casted Type.
It is like if you try to compare the C# cast : (MyType), and the C++ cast : static_cast<MyType*>. The one in C++ is verbose ! It is the same for the graph, I don’t want something verbose :slight_smile: