public bool Add(Object o) { try { AddElement((IElement)o); return true; } catch (InvalidCastException) { return false; } }