Following up on the answer from Stefan, there is now an undocumented function in the serializer called valueForId
that is used like this:
serializers: {
application: RestSerializer.extend({
valueForId(id) {
return parseInt(id);
},
}),
},