Sample c example solClient_msg_getCorrelationTag

msg_getCorrelationTagPtr(solClient_opaqueMsg_pt msg_p, solClient_opaquePointer_pt bufPtr_p,solClient_uint32_t * size_p);
mytype correlation_id_ptr = (mytype*) bufPtr_p;

You mean? As in cast the void* buffer pointer to whatever type you filled it with?