Generic safety on all methods and convert arraylist to list