Fix hacky cast to render an enum numerically