return type.cast( value );
}
if ( value instanceof ObjectReference )
{
ObjectReference reference = (ObjectReference) value;
if ( boxedType.getName().equals( reference.type().name() ) )
{
for ( Field field : reference.referenceType().fields() )
{
try
{