It seems that if we're trying to ensure that only integers are passed in, we should be casting to in. I'm assuming what happens if a client sends in a string would be that we try to compare an int field to a string.