609 {
610 if (typeof(TOther) == typeof(byte))
611 {
612 return (
byte)(object)
value;
613 }
614 if (typeof(TOther) == typeof(char))
615 {
616 return (
char)(object)
value;
617 }
618 if (typeof(TOther) == typeof(decimal))
619 {
620 return (ulong)(decimal)(
object)
value;
621 }
622 if (typeof(TOther) == typeof(double))
623 {
624 return (ulong)(double)(
object)
value;
625 }
626 if (typeof(TOther) == typeof(short))
627 {
629 }
630 if (typeof(TOther) == typeof(int))
631 {
632 return (ulong)(int)(
object)
value;
633 }
634 if (typeof(TOther) == typeof(long))
635 {
636 return (ulong)(long)(
object)
value;
637 }
638 if (typeof(TOther) == typeof(IntPtr))
639 {
640 return (ulong)(nint)(IntPtr)(object)
value;
641 }
642 if (typeof(TOther) == typeof(sbyte))
643 {
644 return (ulong)(sbyte)(
object)
value;
645 }
646 if (typeof(TOther) == typeof(float))
647 {
648 return (ulong)(float)(
object)
value;
649 }
650 if (typeof(TOther) == typeof(ushort))
651 {
652 return (ushort)(object)
value;
653 }
654 if (typeof(TOther) == typeof(uint))
655 {
656 return (uint)(object)
value;
657 }
658 if (typeof(TOther) == typeof(ulong))
659 {
660 return (ulong)(object)
value;
661 }
662 if (typeof(TOther) == typeof(UIntPtr))
663 {
665 }
666 ThrowHelper.ThrowNotSupportedException();
667 return 0uL;
668 }