I have a function, with a single OUT variable of type Tile (which UE4 calls Tile_C).
The function iterates through any hit results from a line trace, attempts to cast any hit actors to Tile, and if successful returns the reference.
However the type of the returned object is SKEL_Tile_C. So I’m forced to re-cast it to the right type again in order to make use of it (attempts to link it up to anything expecting an object of type Tile fail).
Can someone please explain why my function is not returning the specified type despite casting to that type right before the return node? Am I doing something wrong?
Also, on a related note, I can no longer find the “Cast to …” nodes. They seem to have completely disappeared from the list of available nodes, with or without “Context Sensitive” enabled