/Engine/Source/Runtime/GameplayTasks/Classes/GameplayTask.h
Proper way to get the avatar actor associated with the task owner (usually a pawn, tower, etc)
[AActor](API\Runtime\Engine\GameFramework\AActor) * GetAvatarActor() const