Coerce case arg to int for perf reasons