title: How do I use ArrayList<Integer>#contains when I only have a BigInteger?
body: <p>I am pulling data values from a database that returns a List of <code>&lt;Integer&gt;</code>.  However, I would like to see if the List contains my BigInteger.  Is there a simple way to do this?</p>
  
  <p>I currently have the following code in Java:</p>
  
  <pre><code>ArrayList&lt;Integer&gt; arr = new ArrayList&lt;Integer&gt;() {{add(new Integer(29415));}};
  
  boolean contains = arr.contains(29415); // true
  boolean contains2 = arr.contains(new BigInteger("29415")); // false
  </code></pre>
  
  <p>I'm not sure on an efficient way to do this?     </p>