public static byte[] toBinary(Object o,byte[] defaultValue){
  try {
    return toBinary(o);
  }
 catch (  PageException e) {
    return defaultValue;
  }
}

public static byte [ ] toBinary ( Object o , byte [ ] defaultValue ) { try { return toBinary ( o ) ; } catch ( PageException e ) { return defaultValue ; } }
cast a object to a binary
