Get blueprint parent class name

hello everyone, i have a question, i got actor by raycast, and i need to get parent class name of this blueprint(custom class based on AActor), how can i get it?

You can check if that actor is from your custom class by this

CustomClass* FinalActor = Cast<CustomClass>(Actor);

It will return NULL if not.