Cast string to num