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