So are you thinking of adding a bunch of is_int calls all over this?  We don't do this anywhere else in the existing code.