title: Typescript error TS2345 Error: TS2345:Argument of type 'Buffer' is not assignable to parameter of type 'string'
body: <p>new to Typescript. I am reading some data from RabbitMQ channel and am converting it to JSON object. In this line I get the error</p>
  
  <p><strong>let communicationInformation = JSON.parse(newCommunication.content);</strong></p>
  
  <p>TS2345:Argument of type 'Buffer' is not assignable to parameter of type 'string'.</p>
  
  <p>Do I need to cast the data? I am using Typescript 2.4.1</p>
  
  <pre><code> Amqplib.connect(amqpLibUrl, (err, connection) =&gt; {
  if (!err) {
      connection.createChannel((err, channel) =&gt; {
          channel.consume('QueueName', newCommunication =&gt; {
              if (newCommunication != null) {
                  let communicationInformation = JSON.parse(newCommunication.content);
                  // Code 
              }
          })
      })
  }
  });
  </code></pre>