Added @Pipeline.cast@ to allow pipeline end type to be reset.
Merge pull request #81 from BrynCooke/master

Added @Pipeline.cast@ to allow pipeline end type to be reset. Good one @BrynCooke