This code works:
if ((int) pNode()->pUserField() == 2) .....
but am not sure how to do the opposite ie. plug a value back into the object pNode. I have tried
pNode()->pUserField() = (void *) 2;
but this doesn't compile. How do I set the pUserField to an integer value?