public static byte[][] toBytes(final Byte[][] byteArray) {
    if (byteArray == null) {
      return null;
    }
    final byte[][] array = new byte[byteArray.length][];
    for (int i = 0; i < byteArray.length; i++) {
      array[i] = new byte[byteArray[i].length];
      for (int j = 0; j < byteArray[i].length; j++) {
        array[i][j] = byteArray[i][j];
      }
    }
    return array;
  }
Converts a double Byte array into a double byte array.

@param byteArray the double Byte array to convert into a double byte array
@return a double byte array containing byte values from the double Byte array
geode-core/src/main/java/org/apache/geode/internal/util/ArrayUtils.java