uint2 to KeyValuePair conversion

I’m working with particles and would like to adapt the particles code supplied with the SDK projects.

So I’m taking the radix sort stuff and inserting it into my code. Before this radix sort is used the cell that each particle is in is found and a uint2 datatype is created (cell_id,particle_id).

An array of these datatypes is passed to the radix sort, but cast as a KeyValuePair. My compiler tells me that no suitable conversion exists from uint2 to KeyValuePair, and I cannot find in the original where such a conversion takes place.

If anyone has done something similar, got similar messages and overcome this, how did you do it?