GetAllActorsOfClass(): Cannot convert from TArray<> to TArray<> &

UGameplayStatics::GetAllActorsOfClass will only accept TArray so your TArray BaseFrameArray; must be TArray BaseFrameArray;

Only after this then you can cast to whatever class you want.