title: Two fields in a Typescript object from string to float
body: <p>I have an object with different fields. I want to parse the long and lat from string to float. This code works, but I would like to know if there is a more elegant (better practice) way to achieve the same transformation.</p>
  
  <pre><code>this.data.forEach(element =&gt; {
      element.lat = parseFloat(element.lat.toString());
      element.long = parseFloat(element.long.toString());
  });
  </code></pre>
  
  <p>Many thanks</p>