@Override
 public void cast(BigComplex val, ByteType dest) {
   setLong(dest, val.getReal().longValue());
 }
 @Override
 public void cast(ByteType val, BigComplex dest) {
   dest.setReal(val.get());
   dest.setImag(BigDecimal.ZERO);
 }