Best way to compare actors in C++?

Ok, I changed the static mesh to a chair and it works correctly. For some reason, the raycast cannot hit the bush… Interesting.