}
final Type t = _keyTypes.get(index);
if(t == StringType.STRING) {
return new XString(item.stringValue());
}
final AtomicValue it = (item instanceof AtomicValue) ? (AtomicValue) item
: new XString(item.stringValue());
if(t instanceof AtomicType) {
final AtomicType trgType = (AtomicType) t;
final AtomicValue converted = it.castAs(trgType, dynEnv);
return converted;
}
return it;
}