code: @SuppressWarnings("unchecked")
      public static <T extends Example> T[] asArray( T example )
      {
          List<Example> examples = asList( example );
          T[] array = (T[]) Array.newInstance( example.getClass(), examples.size() );
          return examples.toArray( array );
      }
docs: <p>asArray.</p>
  
  @param example a T object.
  @param <T> a T object.
  @return an array of T objects.