I do not see any advantage of converting vectors to arrays.
Since there are many available methods for vector classes.
But in if you are still interested the simple API you can come up with is as following.
You can create an array with size of vector in caller side and then call this method.
void vec2arr(vector vec, int arr[]) {
for (int i = 0; i < vec.size(); i++)
arr[i] = vec[i];
}