public Object[] getPdxFieldValues() {
    if (values == null) {
      return new Object[0];
    }

    Object[] fValues = new Object[values.length];
    for (int i = 0; i < values.length; i++) {
      if (values[i] instanceof PdxInstance) {
        fValues[i] = ((PdxInstance) values[i]).getObject();
      } else if (values[i] instanceof PdxString) {
        fValues[i] = values[i].toString();
      } else {
        fValues[i] = values[i];
      }
    }
    return fValues;
  }
Helper method, Returns field values, in case of PdxInstance gets the domain objects.
geode-core/src/main/java/org/apache/geode/cache/query/internal/StructImpl.java