private static bool FromObjToNullableNumericType(object fromObj, Type innerType, out object result) { var valueUpdated = true; result = null; if (innerType == TypeClass.ByteClazz) { result = NumConvX.ObjectToNullableByte(fromObj); } else if (innerType == TypeClass.SByteClazz) { result = NumConvX.ObjectToNullableSByte(fromObj); } else if (innerType == TypeClass.Int16Clazz) { result = NumConvX.ObjectToNullableInt16(fromObj); } else if (innerType == TypeClass.UInt16Clazz) { result = NumConvX.ObjectToNullableInt16(fromObj); } else if (innerType == TypeClass.Int32Clazz) { result = NumConvX.ObjectToNullableInt32(fromObj); } else if (innerType == TypeClass.UInt32Clazz) { result = NumConvX.ObjectToNullableUInt32(fromObj); } else if (innerType == TypeClass.Int64Clazz) { result = NumConvX.ObjectToNullableInt64(fromObj); } else if (innerType == TypeClass.UInt64Clazz) { result = NumConvX.ObjectToNullableUInt64(fromObj); } else if (innerType == TypeClass.FloatClazz) { result = NumConvX.ObjectToNullableFloat(fromObj); } else if (innerType == TypeClass.DoubleClazz) { result = NumConvX.ObjectToNullableDouble(fromObj); } else if (innerType == TypeClass.DecimalClazz) { result = NumConvX.ObjectToNullableDecimal(fromObj); } else { valueUpdated = false; } return(valueUpdated); }