from number to integer code example Example: numberlong to int NumberLong('yourValue').valueOf().toString();