title: Using foreach with ArrayList - automatic casting?
body: <pre><code>ArrayList x=new ArrayList();
  x.Add(10);
  x.Add("SS");
  
  foreach(string s in x)
  {
  }
  </code></pre>
  
  <p>Does it mean that when foreach is run it tries to cast element of array list to type in foreach expression?</p>