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