title: NSPredicate to compare integer using Contains
body: <p>I am using a NSPredicate to search numbers in the list using UISearchBar ,
  it works in case of strings but does not work for an integer</p>
  
  <p>I am using the following predicate</p>
  
  <pre><code>predicate = [NSPredicate predicateWithFormat:[NSString stringWithFormat:@"%@ contains[c]  %d", @"number", [searchBar.text intValue]]];
  [objectArray filterUsingPredicate:predicate];
  [tableview reloadData];
  </code></pre>
  
  <p>FOR example if I type 1 then all the ones in the array must be listed, I have tried == it works only for the exact number if tried any work around for this any body?</p>
  
  <p>Now I get an error if I use this method "Can't use in/contains operator with collection"</p>