Casting AActor to pawn

Parameter signature of UGameplayStatics::GetAllActorsOfClass()

(const UObject* WorldContextObject, TSubclassOf<AActor> ActorClass, TArray<AActor*>& OutActors)

OutActors has to be TArray<AActor*>.