using System.Collections.Generic;
public static void Main()
_ = Enum.TryParse("INT32", out SomeType paramType);
SomeType.DECIMAL => (decimal)2.0,
SomeType.INT32 => (int)1,
_ => throw new ArgumentOutOfRangeException($"Not expected type.")
Console.WriteLine(value);
Console.WriteLine(value.GetType().ToString());
throw new ArgumentOutOfRangeException($"Not expected type.");
Console.WriteLine(value);
Console.WriteLine(value.GetType().ToString());