code: @SuppressWarnings({ "unchecked", "rawtypes" })
      public static Object[] collectionToObjectArray(Collection c) {
          if (c == null) return new Object[0];
          return c.toArray(new Object[c.size()]);
      }
docs: Convenience method for converting a collection to an Object[]
  @param c The collection
  @return  An object array