code: private AtomicValue atomize(final AbsAxis mOperand) {
  
          int type = getNode().getTypeKey();
          AtomicValue atom;
  
          if (XPATH_10_COMP) {
  
              atom = new AtomicValue(((ITreeValData)getNode()).getRawValue(), getNode().getTypeKey());
          } else {
              // unatomicType is cast to double
              if (type == NamePageHash.generateHashForString("xs:untypedAtomic")) {
                  type = NamePageHash.generateHashForString("xs:double");
                  // TODO: throw error, of cast fails
              }
  
              atom = new AtomicValue(((ITreeValData)getNode()).getRawValue(), getNode().getTypeKey());
          }
  
          // if (!XPATH_10_COMP && operand.hasNext()) {
          // throw new XPathError(ErrorType.XPTY0004);
          // }
  
          return atom;
      }
docs: Atomizes an operand according to the rules specified in the XPath
  specification.
  
  @param mOperand
  the operand to atomize
  @return the atomized operand. (always an atomic value)