int i = 5; System.Int32 i = 5; #### MyType i = (MyType) c.get(5); #### MyType i = c.Get(5) as MyType; #### foreach (MyType i in c) { # do something with i }