Why wouldn't it be a number? Presumably, because it is coming from outside, some uncontrolled source. So you should be checking that the input matches your expectations before processing it. This has the dual benefit of avoiding the warning, and making your program safer.