casting or convert string data to number in typescrip code example Example: typescript cast string to number var x = "32"; var y = +x; // y: number