code: public final static Object toObjectArray(final Object array) {
          if (!array.getClass().isArray()) {
              return array;
          }
          final Class<?> clazz = PRIMITIVE_TO_OBJ.get(array.getClass().getComponentType());
          return setArray(clazz, array);
      }
docs: Convert an array of primitives to Objects if possible. Return input otherwise
  
  @param array
  the array to convert
  @return The array of Objects