title: How do I iterate over an IIterable<T> in C++/CX?
body: <p>(This could also be phrased as "How do I iterate over a collection returned from a C# Windows Runtime Component in C++/CX?")</p>
  
  <p>I tried to use <code>std::for_each</code> on an <code>IIterable&lt;T&gt;</code> but get the following compile-time error </p>
  
  <blockquote>
    <p>error C2664: 'std::begin' : cannot convert parameter 1 from
    'my_collection_type ^' to 'Platform::String ^' No
    user-defined-conversion operator available, or Types
    pointed to are unrelated; conversion requires reinterpret_cast,
    C-style cast or function-style cast</p>
  </blockquote>
  
  <p>How can I iterate over the collection?</p>