title: Umbraco Cast "IPublishedContent" type to "CustomModel" type
body: <p>I am testing Umbraco and trying to set up a list of blogs on a page. I have a custom BlogMode.cs which looks like this:</p>
  
  <pre><code>public class BlogPostModel : RenderModel
  {
      public BlogPostModel() : base(UmbracoContext.Current.PublishedContentRequest.PublishedContent)
      {
      }
  
      public string MainBlogImage { get; set; }
      public string ImageAltText { get; set; }
      public string Introduction { get; set; }
      public string Category { get; set; }
      public IEnumerable&lt;IPublishedContent&gt; BlogPosts { get; set; }
  }
  </code></pre>
  
  <p>This works fine as nor my Model will have the properties above. Now what I am trying to do is get all the blog post by using this:</p>
  
  <pre><code>var posts = Model.Content.Children.ToList();
  </code></pre>
  
  <p>But what this does is creates a list of type <code>IPublishedContent</code>. So now I can not use <code>Model.Introduction</code> or <code>Model.ImageAltText</code> or any other property in my blog model because it is of type <code>IPublishedContent</code> </p>
  
  <p>How would I get this collection and make it of type <code>BlogModel</code>?</p>