title: Is it possible to store integer value in localStorage like in Javascript objects and extract it without typecasting?
body: <p>When I assign integer value to localStorage item </p>
  
  <pre><code>localStorage.setItem('a',1)
  </code></pre>
  
  <p>and check its type</p>
  
  <pre><code>typeof(localStorage.a)
  "string"
  </code></pre>
  
  <p>it returns <strong>string</strong>, I can typecast it to <strong>int</strong> for my use</p>
  
  <pre><code>parseInt(localStorage.a)
  </code></pre>
  
  <p>My question is it possible to store integer value inside localStorage as I can do for Javascript objects without typecasting?</p>
  
  <pre><code>a={};
  a.number=1;
  typeof(a.number)
  "number"
  </code></pre>