title: How to get only the value from int64 type with MongoDB
body: <p>I use RestHeart to get data from MongoDB. When I request a document from a collection that contains a field of type int64 (in this example "INT64_NUMBER") the response contains:</p>
  
  <pre><code>"FLAG_A": "Y",
  "FLAG_B": "N",
  "INT64_NUMBER" {
      "$numberLong": "34"
  },
  "NUM_D": 123
  </code></pre>
  
  <p>Is there any option to obtain the same information without the type "$numberLong"? I mean, something like the following:</p>
  
  <pre><code>"FLAG_A": "Y",
  "FLAG_B": "N",
  "INT64_NUMBER": "34",
  "NUM_D": 123
  </code></pre>
  
  <p>I thought that I should use some kind of aggregation with a project but I can't find a solution by myself neither an example on the web. Does anybody can guide me to find a proper solution? Thanks in advance. </p>