title: JMeter - pass value as String
body: <p>I'm using <code>JMeter</code> to get data from an HTTP call and use it to make another HTTP call. I correctly get my data from the first call, then I use a <code>JSR223 PostProcessor with Javascript</code> to save it with the following statement:</p>
  
  <pre><code>var processId = vars.get("processId");
  vars.put("processId", processId);
  </code></pre>
  
  <p>It works, but the problem is that the ID is savedas a number, but I need it as a String to pass it inside the JSON of the second HTTP call. I tried:</p>
  
  <pre><code>var processId = vars.get("processId")+"";
  </code></pre>
  
  <p>But still is a number. How can I achieve this? Thanks.
  <a href="https://i.stack.imgur.com/XX1oV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XX1oV.png" alt="enter image description here"></a></p>