Help, because of one warning, my blueprint "cast to" is being deleted? how can I fix this?

Have you spawned the flashlight or placed the flashlight in the level?the flashlight blueprint seems to be a pawn,now I’m not sure what you’re trying to do.so could you explain more what you want to achieve.