Get pointer to data from FVector (like std::vector.data())

TArray (which analogous to std::vector) has a GetData method.

So, it would be

function(MyArray.GetData(), MyArray.Num());