title: Azure Table Storage only supports the String as a Data Type?
body: <p>I'm trying to insert data into an Azure table but everything is converted to strings.</p>
  
  <p>E.g. I'm inserting numbers/booleans</p>
  
  <pre><code>var test={ PartitionKey : '4', RowKey : '2', foo: 4, bar: true };
  tableService.insertEntity('mytable', test, ...);
  </code></pre>
  
  <p>but </p>
  
  <pre><code>tableService.queryEntity('mytable', '4', '2', ...);
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>{ id: 'http://127.0.0.1:10002/devstoreaccount1/identid(PartitionKey=\'4\',RowKey=\'2\')',
    link: 'identid(PartitionKey=\'4\',RowKey=\'2\')',
    updated: '2012-12-12T10:26:44Z',
    etag: 'W/"datetime\'2012-12-12T10%3A26%3A44.547Z\'"',
    PartitionKey: '4',
    RowKey: '2',
    Timestamp: '2012-12-12T10:20:44.897Z',
    foo: '4',
    bar: 'true' }
  </code></pre>
  
  <p>How can I specify a data type?</p>
  
  <hr>
  
  <p>OK, just saw in the SDK that you can specify the data type with</p>
  
  <pre><code>var test={ PartitionKey : '4', RowKey : '2', 
    foo: { '@': { type: 'Edm.Int32' }, '#': 4 } };
  </code></pre>
  
  <p>however are there any helper functions to add the type automatically?</p>