castToEndState

This state as an EndState.

Throws