code: public void convertToPoint() {
          EGeometryType geometryType = EGeometryType.forGeometry(getGeometry());
          switch( geometryType ) {
          case MULTIPOLYGON:
          case POLYGON:
          case LINESTRING:
          case MULTILINESTRING:
              // convert to line
              Coordinate[] tmpCoords = geometry.getCoordinates();
              geometry = GeometryUtilities.gf().createMultiPoint(tmpCoords);
              // reset prepared geometry
              preparedGeometry = null;
              break;
          default:
              break;
          }
      }
docs: Tries to convert the internal geometry to a {@link org.locationtech.jts.geom.Point}.
  
  <p>From this moment on the internal geometry (as got by the {@link #getGeometry()})
  will be the point type.
  <p>To get the original geometry one can simply call {@link #resetGeometry()}.