private void parseTreatExpr() throws TTXPathException {

        parseCastableExpr();
        if (is("treat", true)) {
            consume("as", true);
            mPipeBuilder.addTreatExpr(getTransaction(), parseSequenceType());
        }
    }
private void parseTreatExpr ( ) throws TTXPathException { parseCastableExpr ( ) ; if ( is ( "treat" , true ) ) { consume ( "as" , true ) ; mPipeBuilder . addTreatExpr ( getTransaction ( ) , parseSequenceType ( ) ) ; } }
Parses the the rule TreatExpr according to the following production rule:
<p>
[17] TreatExpr ::= CastableExpr ( <"treat" "as"> SequenceType )? .
</p>

@throws TTXPathException