code: public static <E extends List<Boolean>> E asList(boolean[] array, Class<E> listType) {
  		E result;
  		try {
  			result = listType.newInstance();
  
  			for (Object item : array) {
  				result.add((boolean) item);
  			}
  
  			return result;
  		} catch (InstantiationException | IllegalAccessException e) {
  			e.printStackTrace();
  			throw (new KriptonRuntimeException(e.getMessage()));
  		}
  	}
docs: As list.
  
  @param <E> the element type
  @param array the array
  @param listType the list type
  @return the e