title: Convert Object to String
body: <p>I've got an object returned from a field <code>msg</code> which is an object. I'm attempted to get the value from msg and convert it into a string so I can use <code>.startswith()</code>. I'm trying the following..</p>
  
  <pre><code> var msgstring = msg.value
   if(msgstring.startsWith("string")){
      //Doing stuff!
   }
  </code></pre>
  
  <p>However, I get the following error...</p>
  
  <pre><code>Uncaught TypeError: Object string here has no method 'startsWith'
  </code></pre>
  
  <p>Where am I going wrong?</p>