title: C# typecast basic query
body: <p>I am new to C#</p>
  
  <p>I have a struct like</p>
  
  <pre><code>struct Package
  {
  Public int[] intvalues;
  Public char[] charvalues;
  Public string strvalue;
  }
  </code></pre>
  
  <p>Now I have a string </p>
  
  <pre><code>string strquery;
  </code></pre>
  
  <p>I want to take the value of intvalues of the Package whose name is strquery.</p>
  
  <p>As far as I tried, this didnt work</p>
  
  <pre><code>(Package)strquery.strvalue
  </code></pre>
  
  <p>Please help</p>