code: public static <CommonSuperType, First extends CommonSuperType, Second extends CommonSuperType>
        CommonSuperType[] toArray(final Pair<First, Second> pair,
            final Class<CommonSuperType> commonSuperType) {
      @SuppressWarnings("unchecked")
      final CommonSuperType[] array = (CommonSuperType[]) Array.newInstance(
          commonSuperType, 2);
      return toArray(pair, array, 0);
    }
docs: Transform a pair into an array of the common super type of both components.
  
  @param pair
  The pair.
  @param commonSuperType
  A common super type that both First and Second inherit from.
  @return The array of the common super type with length 2.