title: Invalid variant operation error when trying to store Integer in TJvFormStorage
body: <p>In a VCL application in Delphi 10.1.2, I use a <code>TJvFormStorage</code> component to persistently store and restore data.</p>
  
  <p>So in <strong>JvFormStorage1</strong> at design-time I have created a <strong>StoredValue</strong> to hold an <code>Integer</code> value:</p>
  
  <p><a href="https://i.stack.imgur.com/jELIA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jELIA.png" alt="enter image description here"></a></p>
  
  <p>Then at runtime, I try to assign an <code>Integer</code> value to this <strong>StoredValue</strong>:</p>
  
  <pre><code>JvFormStorage1.StoredValue['ToolbarLabelFontSize'].Value := 8;
  </code></pre>
  
  <p>This causes an <strong>Invalid variant operation error</strong>!</p>
  
  <p>But as you can see from the screenshot above, the <strong>Value Type</strong> of the <strong>StoredValue</strong> is explicitly defined as <code>Integer</code> type!</p>
  
  <p>So how can I assign an <code>Integer</code> value to this <strong>StoredValue</strong>?</p>