code: public static <T> T[] toArray(final Object source, final Class<T> wrapperType) {
  
      if (source != null) {
        int length = Array.getLength(source);
        T[] convertedArray = buildArray(wrapperType, length, null);
        for (int i = 0; i < length; i++) {
          @SuppressWarnings("unchecked")
          T element = (T) Array.get(source, i);
          convertedArray[i] = element;
        }
        return convertedArray;
      } else {
        return null;
      }
    }
docs: 将基本数据类型的数组转换成给定封装类型的数组。Convert primitive array to given wrapper type array.
  
  @param source 基本数据类型组成的数组。primitive array...
  @param wrapperType 给定数组元素将封装成的类型。the array element type will covert to
  given wrapper type.
  @return 一个新的封装类型的数组，并包含给定数组的所有元素。a new wrapper type array have full source
  element.