How to cast to an actor hit by a trace?

Hello,

You need to cast the type of OutHit.GetActor() to your custom type.

AHandGrabVolume* HandGrabActor = Cast<AHandGrabVolume>(OutHit.GetActor());

// Always check casts to make sure they are valid.
// Casts return NULL if the cast failed.
if (HandGrabActor != NULL)
{
    FVector HandGrabLocation = HandGrabActor->GetHandGrabLocation();
}

~ Dennis