title: How to convert System.Web.Configuration.WebConfigurationManager.AppSettings from String to INT
body: <p>I have defined the following inside my web.config file:-</p>
  
  <pre><code>&lt;add key="TechPageSize" value="20" /&gt;
  </code></pre>
  
  <p>But I m unable to reference this value inside my paging parameters as follow:-</p>
  
  <pre><code>var servers = repository.AllFindServers(withOutSpace).OrderBy(a =&gt; a.Technology.Tag).ToPagedList(page, (Int32)System.Web.Configuration.WebConfigurationManager.AppSettings["TechPageSize"]);
  </code></pre>
  
  <p>and I will get an error that it can not change String to INT.</p>
  
  <p>Any idea what is the problem ?</p>