I know, I have other options, e.g. I could maintain a separate list of keys. Please don\'t suggest other options. I simply want to know if I can pull this off. Please don\'t
Because hashtable.Keys is a collection of objects which is not covariant with a list of integers.
hashtable.Keys