How to get reference of a custom class instance?

Thanks, but how do you definie this OtherActor (tried your way, but says OtherActor is not defined)