Best way to compare actors in C++?

At the first if statement that involves the values for the actors, the returnRaycastActor() method returns: ASandboxGameCharacter::raycast returned 0x0000022fd1fa6800 (Name=0x0000022f902125d0 “Floor”).