Cast string to int