You need target for casting, in your first picture you dont have input for cast, thats why it fails.