Cannot set hidden in-game

Ok so you if i connect the cast function to other actor, im doing it to the player character as you said. then what should i connect the object node to?