Set overlaped actor to variable ThirdPersonCharacter

You can compare classes or you can simply cast: