Method ChangeType(object, Type, IFormatProvider?)
, except that a double or a float asked for as a
decimal goes through / . Every other pair converts exactly as
does with the same provider (null: the current
culture, as ).
public static object ChangeType(object value, Type targetType, IFormatProvider? provider = null)