code: @Override
      public byte[] toBytes(Object object)
      {
          if (object != null)
          {
              Boolean b = (Boolean) object;
  
              return new byte[] { (byte) (b ? 0x01 : 0x00) }; // bool -> {1 byte}
          }
          return null;
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.property.PropertyAccessor#toBytes(java.lang.Object)