Use var instead of object.

foreach (var o in elementList) { ... }