changing filter_var by intval -refs #6259