Generalized ArrayList to List in For