With classes like this you always will need type cast for collection's element.
In general case:
MyObject my = whoKnowsWhat as MyObject;
if (my == nulll)
my./... use my
MyObject my = (MyObject)whoKnowsWhat;
Don't do all that in your case!
Simply don't use name space
, it's mostly obsolete; use
instead. At least you will be away from the problems with casting.