SimpleNode node = stack.popNode();
try {
stmts[i] = (stmtType) node;
} catch (ClassCastException e) {
if (node instanceof Yield) {
stmts[i] = new Expr((Yield) node); //recover from it with a valid node!
String msg = "Error. Found yield out of scope.";
final ParseException e2 = new ParseException(msg, node);
this.stack.getGrammar().addAndReport(e2, msg);
} else {
recoverFromClassCastException(node, e);