Type Casting from float to domfloat

	domFloat* posArray = new domFloat[mesh_data->geometry[0].positions_s];

	for (size_t i = 0; i < mesh_data->geometry[0].positions_s; i++) {
		posArray[i] = (domFloat)mesh_data->geometry[0].positions[i];

I use this code to (attempt to) cast my array of float values to collada domFloats so I can easily append the array using addSource(mesh, geomID + “-positions”, “X Y Z”, posArray, count).

Whats happening is nulls are being appended to the posArray instead of the float value. Can someone please inform me of the correct syntax? Many thanks.

There’s actually nothing wrong with this snippet, my problem was occurring elsewhere.