return (String) konst.getVal();
throw new TypeCastException(TypeCastException.TYPE_STRING, konst.getVal().toString());
}
public boolean evaluateAsBoolean(OExpression cexp, EvaluationContext ctx) throws FaultException, EvaluationException {
OConstantExpression konst = (OConstantExpression) cexp;
if (konst.getVal() instanceof Boolean)
return ((Boolean)konst.getVal()).booleanValue();
throw new TypeCastException(TypeCastException.TYPE_BOOLEAN, konst.getVal().toString());
}