The problem with doing it like this is now there is no logic to tell it which print string to use, the cast success or fail which was the point of trying to use a cast to node.