Switch from string to integer