title: Do a linq query on an object array?
body: <p>I have a collection of type objects which I know they are type Employee. I'd like to perform some linq operations on them using the employee some thing similar to this: </p>
  
  <pre><code> var options = (from e in m_Employees  
                        select (e as Employee).DepartmentCode).Distinct();
  </code></pre>
  
  <p>But the as employee is not surprisingly giving an error. is there a way around it? </p>
  
  <p>Changing the collection is not really an options since I,m maintaining the code and I want to avoid big changes. </p>