to<T> method
T
to<T>()
Converts the wrapped value to type T.
Throws a ConversionException if the conversion fails.
Implementation
T to<T>() {
final source = _transformValue('Converter.to<$T>');
return ConvertObjectImpl.toType<T>(source);
}