You should use the method below. double.parse(inset your string here), and if you want to switch anthing to an int you should use the method below. int.parse(enter your value here)