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