* @throws IOException
*/
public long getLongFromArgument(TaggedValuePointable tvp) throws SystemException, IOException {
if (tvp.getTag() == ValueTag.XS_DOUBLE_TAG) {
tvp.getValue(doublep);
abvsRound.reset();
round.operateDouble(doublep, abvsRound.getDataOutput());
doublep.set(abvsRound.getByteArray(), abvsRound.getStartOffset() + 1,
DoublePointable.TYPE_TRAITS.getFixedLength());
return doublep.longValue();
} else if (tvp.getTag() == ValueTag.XS_INTEGER_TAG) {