code: public static GraphEntity[] toGEArray(Object[] o) {
          GraphEntity[] result = new GraphEntity[o.length];
          System.arraycopy(o, 0, result, 0, o.length);
          return result;
      }
docs: It casts an array of objets to an array of GraphEntity
  
  @param o the array of objects
  @return