1) it would be better to use a Map implementation instead of a Listimplementation,2) make it using casting :((YourObject)id.elementAt(i)).myMethod() etc...