Prevent user from sending string instead of int via the API