angular 8 convert to int32 code example Example: typescript cast string to number var x = "32"; var y = +x; // y: number