title: How to convert an integer to a string
body: <p>I want to convert an integer to a string. I tried it this way but this didn't work</p>
  
  <pre><code>void foo()
  {
      int y = 1;
      string x = static_cast&lt;string&gt;(y);
  
  }
  </code></pre>