code: public static int[] getConfigArr(VarSet vars, VarConfig config) {        
          IntArrayList a = new IntArrayList(config.getVars().calcNumConfigs());
          IntIter iter = getConfigIter(vars, config);
          while (iter.hasNext()) {
              a.add(iter.next());
          }
          return a.toNativeArray();
      }
docs: Gets an array version of the configuration iterator.
  @see edu.jhu.pacaya.gm.model.IndexForVc#getConfigIter