cast<R> method
Adapt this stream to be aStream<R>.
This stream is wrapped as aStream<R> which checks at run-time thateach data event emitted by this stream is also an instance ofR.
Implementation
Stream<R> cast<R>() => Stream.castFrom<T, R>(this);