code: @Nullable
    @ReturnsMutableCopy
    public static Object [] getAsObjectArray (@Nullable final Collection <?> aCollection)
    {
      if (CollectionHelper.isEmpty (aCollection))
        return null;
  
      final Object [] ret = new Object [aCollection.size ()];
      return aCollection.toArray (ret);
    }
docs: Get the passed collection as an array of Object. If the passed collection
  is <code>null</code> or empty, an empty array is returned.
  
  @param aCollection
  The collection to be converted. May be <code>null</code>.
  @return Never <code>null</code>.