if (xmlRpcRepresentation == null)
{
throw( new TypeConversionException( "Object to convert must not be null" ) );
}
ApiParameter p = ApiParameter.createFrom( targetClass );
Object result = getTypeConverter().convertToUserRepresentation( p, xmlRpcRepresentation );
//Note: a Class.cast( Object ) call will not manage to convert, e.g. an Integer to primitive int
return( (T)result );
}