Cast string as int