string ke int tsx

var x = "32";
var y: number = +x;
Brainy Beetle