List extends Collection which in turn extends Iterable. You therefore trying to cast to a subtype which won't work unless getElements() really is returning a List (which the signature doesn't in any way guarantee).
See: http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html