Of cource you can insert your class' objects.You should cast the object to its type to beable to access that class' methods and so on.((YOURCLASSNAME)id.elementAt(i)).myMethod();