{"action":"opened","issue":{"url":"https://api.github.com/repos/jhund/filterrific/issues/40","labels_url":"https://api.github.com/repos/jhund/filterrific/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/jhund/filterrific/issues/40/comments","events_url":"https://api.github.com/repos/jhund/filterrific/issues/40/events","html_url":"https://github.com/jhund/filterrific/issues/40","id":62643655,"number":40,"title":"Should we cast negative number as int?","user":{"login":"vmeyet","id":2462303,"avatar_url":"https://avatars.githubusercontent.com/u/2462303?v=3","gravatar_id":"","url":"https://api.github.com/users/vmeyet","html_url":"https://github.com/vmeyet","followers_url":"https://api.github.com/users/vmeyet/followers","following_url":"https://api.github.com/users/vmeyet/following{/other_user}","gists_url":"https://api.github.com/users/vmeyet/gists{/gist_id}","starred_url":"https://api.github.com/users/vmeyet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmeyet/subscriptions","organizations_url":"https://api.github.com/users/vmeyet/orgs","repos_url":"https://api.github.com/users/vmeyet/repos","events_url":"https://api.github.com/users/vmeyet/events{/privacy}","received_events_url":"https://api.github.com/users/vmeyet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T09:57:09Z","updated_at":"2015-03-18T09:57:09Z","closed_at":null,"body":"Kind of linked to the following issue https://github.com/jhund/filterrific/issues/34\r\n\r\nWhen the params hash is conditioned in `ParamSet`, the string that \"looks like\" a negative number are not casted into negative int.\r\n\r\nex:\r\n\r\n```ruby\r\n[1] > condition_filterrific_params { 'filter_negative_int' => '-42' }\r\n=> { 'filter_negative_int' => '-42' }\r\n# shouldn't this be { 'filter_negative_int' => -42 } ?\r\n```\r\n\r\nDoes it make sense to cast as a negative int?"}}