public static T To<T>(
this IConvertible value,
IFormatProvider formatProvider = null
)
InvalidCastException | Thrown when attempting to convert a null value to a value type. |
Exception | Thrown when the conversion cannot be performed using IConvertible methods. |