Best way to compare actors in C++?

your code is casting this into asandboxgamecharacter, however the function name indicates that this is a AInteractableObject… Is that intentional? is there some kind of relationship between the two?
If not, it may be the issue?