Added @GremlinPipeline.cast@ to allow pipeline end type to be reset.