private BaseStream<E, ?> getStream() {
        BaseStream<?, ?> result = getInitialSupplier().get();
        for (Action<?, ?> action : this) {
            result = cast(result, action);
        }
        
        // Convey pipeline parallelism and ordering
        // setting to the destination stream.
        if (parallel) {
            result.parallel();
        } else {
            result.sequential();
        }
        if (!ordered) {
            result.unordered();
        }
        
        @SuppressWarnings("unchecked")
        final BaseStream<E, ?> castedResult = (BaseStream<E, ?>) result;
        return castedResult;
    }
@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