getObjectStoreId() in 4.0 API

I have been using this method (of the interface IMendixIdentifier) to obtain the surrogate primary key of an object as stored in the database. In 4.0 the actions won't compile because the method is no longer available. How can we now retrieve the id please?
1 answers

use toLong() instead, the identifier is now simply a wrapper around the long value (as far as the outside world is concerned)

Edit: I have updated the documentation at to reflect these changes.