private <In extends BaseStream<?, ?>, Out extends BaseStream<?, Out>> Out cast(In in, Action<?, ?> action) {
        requireNonNull(in);
        requireNonNull(action);
        @SuppressWarnings("unchecked")
        final Function<In, Out> mapper = (Function<In, Out>) action.get();
        return mapper.apply(in);
    }
@author pemi
@param <E> The type element that the last PipelineImpl holds
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/internal/stream/builder/pipeline/PipelineImpl.java