Added the _asType() function

Also, moved DataModelAccess' MOIDs out of the public API, where it is
just causing unnecessary recompilation.