1192 {
1193 if (typeof(TOther) == typeof(byte))
1194 {
1195 return (
char)(byte)(
object)
value;
1196 }
1197 if (typeof(TOther) == typeof(char))
1198 {
1199 return (
char)(object)
value;
1200 }
1201 if (typeof(TOther) == typeof(decimal))
1202 {
1203 return (
char)(decimal)(
object)
value;
1204 }
1205 if (typeof(TOther) == typeof(double))
1206 {
1207 return (
char)(double)(
object)
value;
1208 }
1209 if (typeof(TOther) == typeof(short))
1210 {
1212 }
1213 if (typeof(TOther) == typeof(int))
1214 {
1215 return (
char)(int)(
object)
value;
1216 }
1217 if (typeof(TOther) == typeof(long))
1218 {
1219 return (
char)(long)(
object)
value;
1220 }
1221 if (typeof(TOther) == typeof(IntPtr))
1222 {
1223 return (
char)(nint)(IntPtr)(object)
value;
1224 }
1225 if (typeof(TOther) == typeof(sbyte))
1226 {
1227 return (
char)(sbyte)(
object)
value;
1228 }
1229 if (typeof(TOther) == typeof(float))
1230 {
1231 return (
char)(float)(
object)
value;
1232 }
1233 if (typeof(TOther) == typeof(ushort))
1234 {
1235 return (
char)(ushort)(
object)
value;
1236 }
1237 if (typeof(TOther) == typeof(uint))
1238 {
1239 return (
char)(uint)(
object)
value;
1240 }
1241 if (typeof(TOther) == typeof(ulong))
1242 {
1243 return (
char)(ulong)(
object)
value;
1244 }
1245 if (typeof(TOther) == typeof(UIntPtr))
1246 {
1247 return (
char)(nuint)(UIntPtr)(object)
value;
1248 }
1249 ThrowHelper.ThrowNotSupportedException();
1250 return '\0';
1251 }