The validity checking for parameter values being passed in expects them
all to be strings, then casts them to their appropriate type after
confirming that they're valid.
Rather than bypassing these checks, it's safer to convert the values to
strings, then continue with the existing validity checks.