I can't see output pin in the function

It will fail because he is not able to get his output from his function, to plug in to the casting node.