A couple of tips: When preparing the ListList, ensure you add CustomClassCustomClass objects to the list.
customObjects.add( (CustomClass) object );
customObjects.add( (CustomClass) object ); When returning object from your method getObjects()getObjects(), this will return list of CustomClassCustomClass and not list of ObjectsObject.
List objects = getObjects();
List<CustomClass> objects = getObjects(); Hope this helps.