How to convert number type into string type in Angular 10

I am new to Angular. I need help to convert a number value into a string value. I tried to convert with my_number.toString(). But it gets me an error "toString() of undefined". here is my simple conversion code

let id:string =  user.Id.toString();
    console.log(id);

Source: Angular Questions