Can't export units of measure.

When this line executes: var exporter = (Export)app.
                CreateExporter(PeachwIEObj.peachwIEObjUnitMeasure);

I get this error:
The import object id specified is not valid.  Please check the import object in the documentation.

The enum is evaluating to 35, just as it says in the documentation. What gives?