The NMS Class Library (.Net Messaging Library)

PrimitiveMap.CheckValueType Method 

protected virtual void CheckValueType(
   object value,
   Type type
);

See Also

PrimitiveMap Class | ActiveMQ.OpenWire Namespace