code: @SuppressWarnings("unchecked")
      public static <T> Class<T>[] itemClasses(Tuple tuple) {
          Class<?>[] itemClasses = new Class[tuple.getSize()];
          int index = 0;
          for (Object o : tuple) {
              itemClasses[index++] = o.getClass();
          }
          return (Class<T>[]) itemClasses;
      }
docs: Returns a list containing the classes of the elements of the tuple.
  
  @param <T>   the common of the classes contained by the tuple.
  @param tuple the tuple to convert.
  @return the list of classes.