title: Converting Angular ng-model to integer when writing to Firebase
body: <p>I am using AngularFire for taking inputs and saving them to my Firebase database. Currently, I have an input for entering the price of a service, like so (I am using an input type of "text" instead of "number", since I don't want it to cause problems in older browsers):</p>
  
  <pre><code>&lt;p&gt;&lt;input type="text" placeholder="Enter your monthly price here" ng-model="priceMonthly" required/&gt;&lt;/p&gt;
  </code></pre>
  
  <p>However, when I write this to my Firebase upon form submission (using the update function), it writes the value <code>$scope.priceMonthly</code> as a string instead of an integer. What's the best way to write this value as an integer instead of a string? </p>