code: @Override
      protected AtomicValue[] atomize(final AbsAxis mOperand) throws TTXPathException {
  
          int type = getNode().getTypeKey();
  
          // (3.) if type is untypedAtomic, cast to string
          if (type == NamePageHash.generateHashForString("xs:unytpedAtomic")) {
              type = NamePageHash.generateHashForString("xs:string");
          }
  
          final AtomicValue atomized = new AtomicValue(((ITreeValData)mOperand.getNode()).getRawValue(), type);
          final AtomicValue[] op = {
              atomized
          };
  
          // (4.) the operands must be singletons in case of a value comparison
          if (mOperand.hasNext()) {
              throw EXPathError.XPTY0004.getEncapsulatedException();
          } else {
              return op;
          }
  
      }
docs: {@inheritDoc}