Force thresholds to ints

If the thresholds come in as strings then the comparisons will always
fail since 400 is not > '100', for example.