Implemented To<T>() method for IConvertible objects