Thanks everybody, I have got it to work!
In the function I first tried float* instead of int* because the scalars in the vector are floats (I think), but this did really weird stuff. So I changed it to var* and this worked perfectly! I can send each scalar along separately

Thanks again guys!
PS: If you know anything about the float* weirdness, could you please tell me what that's about?