Given the fact you want to allow strings, I think the exception message needs to be updated as well:
`'Priority must be a number, received "%s"'`