title: How to get the "Page type" for the current page. EPiServer
body: <p>How can I get the Page Type for the current page. I tried</p>
  
  <pre><code>CurrentPage.GetType();
  </code></pre>
  
  <p>but no success. I need to check if the Page Type equals a specific type in order to do something or not. </p>
  
  <p>Thanks</p>