*/
TypeId condTypeId = getTypeId();
for (int i = 0; i < thenElseList.size(); i++) {
ValueNode expr = thenElseList.elementAt(i);
if (expr.getTypeId().typePrecedence()
!= condTypeId.typePrecedence()) {
// Cast to dominant type.
ValueNode cast = new CastNode(
expr, getTypeServices(), getContextManager());
cast = cast.bindExpression(fromList, subqueryList, aggregates);
thenElseList.setElementAt(cast, i);