Hi everyone

Not a question on how to do something, just why the following isn't possible (As an example):
Code:
Hashtable ht = new Hashtable();
ht.Add("test", 5);
int blah = (int)ht["test"];
I think it's strange but I haven't exactly read the whole C# spec to find out, just wondering if anyone knows