public < R > Stream < R > cast ( final Class < R > c ) { return map ( new Func1 < T , R > ( ) { @ Override public R call ( T obj ) { return c . cast ( obj ) ; } } ) ; }
Returns a stream that contains all values of the original stream that has been casted to a given class type .