code: public static Array array(Object array) {
          if (array instanceof Object[]) {
              return array((Object[]) array);
          }
          switch (tId(array.getClass())) {
              case I_BOOLEAN:     return array((boolean[]) array);
              case I_BYTE:        return array((byte[]) array);
              case I_CHARACTER:   return array((char[]) array);
              case I_DOUBLE:      return array((double[]) array);
              case I_FLOAT:       return array((float[]) array);
              case I_INTEGER:     return array((int[]) array);
              case I_LONG:        return array((long[]) array);
              case I_SHORT:       return array((short[]) array);
          }
          throw new IllegalArgumentException("No array: " + array);
      }
docs: Creates an {@link Array}.
  @param array source array
  @return array