Move arg->int conversion into cowboy route.