<PackageReference Include="Newtonsoft.Json" Version="6.0.3" />

ConvertUtils

static class ConvertUtils
public static object Convert(object initialValue, CultureInfo culture, Type targetType)

public static object ConvertOrCast(object initialValue, CultureInfo culture, Type targetType)

Converts the value to the specified type. If the value is unable to be converted, the value is checked whether it assignable to the specified type.

public static object FromBigInteger(BigInteger i, Type targetType)

public static PrimitiveTypeCode GetTypeCode(object o)

public static TypeInformation GetTypeInformation(IConvertible convertable)

public static ParseResult Int32TryParse(char[] chars, int start, int length, out int value)

public static ParseResult Int64TryParse(char[] chars, int start, int length, out long value)

public static bool IsConvertible(Type t)

public static bool IsInteger(object value)

public static TimeSpan ParseTimeSpan(string input)

public static object ToValue(INullable nullableValue)