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