Why making a "cast to target_blueprint" in animation BP fails?

Does this occur when you are in gameplay or simulation? I don’t think you will see what you expect in preview mode.