condition = new BooleanExpression(condition, Token.OR, isString);
condition = new BooleanExpression(condition, Token.OR, isUntypedAtomic);
condition = new BooleanExpression(condition, Token.OR, isBoolean);
var = new LocalVariableReference(let);
NumberFn fn = (NumberFn)SystemFunction.makeSystemFunction("number", new Expression[]{var});
var = new LocalVariableReference(let);
var.setStaticType(SequenceType.SINGLE_ATOMIC, null, 0);
Expression action = Choose.makeConditional(condition, fn, var);
let.setAction(action);