How to Cast to static Mesh?

Cast to Other Component instead. Actor is not a Component.

But there’s no guarantee that the cast will be successful, ofc.

You have to specify what kind of static mesh is it. If it is a blueprint actor, then you shouldn’t ‘Cast to StaticMesh’, but you should actually ‘Cast to [YourBlueprintName]’. If I’m understanding the situation correctly what you want to do is to check if the character has entered the ‘Flag House’ and if true, then Quit Game. If so, you should do like this:

.

If that is not what you want to do, and what you want is to see is if the overlapped actor is a particular StaticMesh, and the actor you are checking the overlap against is not a custom Blueprint, then you can use the == node and select the mesh you want to compare the ‘Other Comp’ output of overlap event, What that will do is ask Unreal if the mesh that overlapped is the same you selected in the == node, if so then quit game

thanks for your text
It is working 100%