private static bool FromObjToNullableNumericType(object fromObj, Type innerType, out object result) { var valueUpdated = true; result = null; if (innerType == TypeClass.ByteClass) { result = NumericConv.ObjectToNullableByte(fromObj); } else if (innerType == TypeClass.SByteClass) { result = NumericConv.ObjectToNullableSByte(fromObj); } else if (innerType == TypeClass.Int16Class) { result = NumericConv.ObjectToNullableInt16(fromObj); } else if (innerType == TypeClass.UInt16Class) { result = NumericConv.ObjectToNullableInt16(fromObj); } else if (innerType == TypeClass.Int32Class) { result = NumericConv.ObjectToNullableInt32(fromObj); } else if (innerType == TypeClass.UInt32Class) { result = NumericConv.ObjectToNullableUInt32(fromObj); } else if (innerType == TypeClass.Int64Class) { result = NumericConv.ObjectToNullableInt64(fromObj); } else if (innerType == TypeClass.UInt64Class) { result = NumericConv.ObjectToNullableUInt64(fromObj); } else if (innerType == TypeClass.FloatClass) { result = NumericConv.ObjectToNullableFloat(fromObj); } else if (innerType == TypeClass.DoubleClass) { result = NumericConv.ObjectToNullableDouble(fromObj); } else if (innerType == TypeClass.DecimalClass) { result = NumericConv.ObjectToNullableDecimal(fromObj); } else { valueUpdated = false; } return(valueUpdated); }