title: How to get block Items from a ContentArea based on its type
body: <p>I have a page type with a ContentArea as one of its properties </p>
  
  <p>(currentPage.PrimaryComponentArea)</p>
  
  <p>How can I get the block items stored in this property based on its type.</p>
  
  <p>I also want to be to access properties on the block so I need to convert it from ContentAreaItem to the actuall block type.</p>
  
  <pre><code>        public ActionResult Index(RatePlanPageType currentPage)
          {
            ..........
  
            var allItems = currentPage.PrimaryComponentArea.Items;
  
            var blocks = allItems.Where(x =&gt; bla bla bla  &lt; Can I do it using linq
  
          }
  </code></pre>
  
  <p>this is my first Episerver project so I hope this is not a stupid question.</p>