Cast string of total to int, for #71