cast<R> method Null safety

Parser<R> cast<R>()

Returns a parser that casts itself to Parser<R>.

Implementation

Parser<R> cast<R>() => CastParser<T, R>(this);