@Override
 public double asDouble(ByteType val) {
   return val.get();
 }
 @Override
 public long asLong(ByteType val) {
   return val.get();
 }
 @Override
 public void cast(ByteType val, BigComplex dest) {
   dest.setReal(val.get());
   dest.setImag(BigDecimal.ZERO);
 }