Passing TArray of TObjectPtr of AActor subtype to TArray<AActor*> parameter

I have a TArray<TObjectPtr<APickup>> Pickups property that I would like to pass to the function UGameplayStatics::FindNearestActor. (APickup is an AActor subclass) I get the error:

no suitable user-defined conversion from “TArray<TObjectPtr, FDefaultAllocator>” to “const TArray<AActor *, FDefaultAllocator>” exists

Do I have to iterate over my Pickups array and convert them to APickup* and add them to a new array to pass it to UGameplayStatics::FindNearestActor’s second parameter or is there something simpler I can do?

Try with c style cast or static cast

UGameplayStatics::FindNearestActor(Origin, static_cast<TArray<AActor*>>(Pickups), Distance);