939 {
940 if (typeof(TOther) == typeof(byte))
941 {
942 return (
int)(byte)(
object)
value;
943 }
944 if (typeof(TOther) == typeof(char))
945 {
946 return (
int)(char)(
object)
value;
947 }
948 if (typeof(TOther) == typeof(decimal))
949 {
950 return (
float)(decimal)(
object)
value;
951 }
952 if (typeof(TOther) == typeof(double))
953 {
954 return (
float)(double)(
object)
value;
955 }
956 if (typeof(TOther) == typeof(short))
957 {
958 return (
short)(object)
value;
959 }
960 if (typeof(TOther) == typeof(int))
961 {
962 return (
int)(object)
value;
963 }
964 if (typeof(TOther) == typeof(long))
965 {
966 return (
long)(object)
value;
967 }
968 if (typeof(TOther) == typeof(IntPtr))
969 {
971 }
972 if (typeof(TOther) == typeof(sbyte))
973 {
974 return (sbyte)(object)
value;
975 }
976 if (typeof(TOther) == typeof(float))
977 {
978 return (
float)(object)
value;
979 }
980 if (typeof(TOther) == typeof(ushort))
981 {
982 return (
int)(ushort)(
object)
value;
983 }
984 if (typeof(TOther) == typeof(uint))
985 {
986 return (uint)(object)
value;
987 }
988 if (typeof(TOther) == typeof(ulong))
989 {
990 return (ulong)(object)
value;
991 }
992 if (typeof(TOther) == typeof(UIntPtr))
993 {
994 return (nint)(nuint)(UIntPtr)(object)
value;
995 }
996 ThrowHelper.ThrowNotSupportedException();
997 return 0f;
998 }