/Engine/Source/Runtime/GameplayTasks/Classes/GameplayTask.h
Proper way to get the owning actor of task owner. This can be the owner itself since the owner is given as a interface
[AActor](API\Runtime\Engine\GameFramework\AActor) * GetOwnerActor() const