title: Check ArrayList for instance of object
body: <p>I have a java method that should check through an ArrayList and check if it contains an instance of a given class. I need to pass the method the type of class to check for as a parameter, and if the List contains an object of the given type, then return it.</p>
  
  <p>Is this achievable?</p>