doublep.set(abvsRound.getByteArray(), abvsRound.getStartOffset() + 1,
DoublePointable.TYPE_TRAITS.getFixedLength());
return doublep.longValue();
} else if (tvp.getTag() == ValueTag.XS_INTEGER_TAG) {
tvp.getValue(longp);
return longp.longValue();
} else if (tvp.getTag() == ValueTag.XS_DECIMAL_TAG) {
tvp.getValue(decp);
return decp.longValue();
} else {
throw new SystemException(ErrorCode.FORG0006);