try {
abvs.reset();
switch (tvp1.getTag()) {
case ValueTag.XS_STRING_TAG:
tvp1.getValue(tp.utf8sp);
castToDouble.convertString(tp.utf8sp, dOut);
break;
case ValueTag.XS_UNTYPED_ATOMIC_TAG:
tvp1.getValue(tp.utf8sp);
castToDouble.convertUntypedAtomic(tp.utf8sp, dOut);
break;