cast<U extends T> method

Parser<U> cast<U extends T>()

Casts this parser to produce U objects.

Implementation

Parser<U> cast<U extends T>() => new _Cast<T, U>(this);