tinkerpop/pipes — pull request #81 by BrynCooke (2013-04-02 19:48:56+00:00)
Title: Added @Pipeline.cast@ to allow pipeline end type to be reset.

Currently if a Java client uses a function that loses the end type of then they have to recast the pipeline if they want to use the for-each syntax, e.g:

```java
GremlinPipeline p = new GremlinPipeline();
for (Edge e : (GremlinPipeline)p.outE("permission-of").as("permission").inV().back("permission")) {
//Stuff
}
```
Adding a cast function allows the end type to be manually set without the noise of casting.
```java
GremlinPipeline p = new GremlinPipeline();
for (Edge e : p.outE("permission-of").as("permission").inV().back("permission").cast(Edge.class)) {
//Stuff
}
```