Type Casting to integer

Needed for this line https://github.com/owncloud/core/blob/master/core/js/share.js#L428
If not you get an string and not a number!