title: How get values as integer in formGroup.value in Angular2
body: <p>I make a form using <a href="https://angular.io/docs/ts/latest/cookbook/dynamic-form.html" rel="nofollow">DynamicForm</a> it work perfect but when try to get the values using <code>form.value</code> or <code>form.getRawValue()</code> all files are return like string, how I make to the <code>number</code> files as return as <code>integer</code> in the JSON file </p>
  
  <p><strong>Example</strong></p>
  
  <p>actually I get a JSON like this</p>
  
  <pre><code>{
    "name": "home",
    "age": "12"
  }
  </code></pre>
  
  <p>but I need this:</p>
  
  <pre><code>{
    "name": "home",
    "age": 12
  }
  </code></pre>
  
  <p><strong>EDIT</strong> </p>
  
  <p>The formControl constructor</p>
  
  <pre><code>const form = new FormGroup({
    name : new FormControl(undefined  || '', Validators.required),
    age  : new FormControl(undefined  || '')
  }); 
  </code></pre>