title: convert MongoDB Rest's Guid into C# CLR
body: <p>I use mongodb with Rest. Every document is composed of a field Id(Guid) and Name (string)</p>
  
  <p>Here's what's displayed when I access the webpage : </p>
  
  <pre><code>"_id" : { "$binary" : "Oq4RFClrRUOtIp89AQTGPw==",
          "$type" : "03"
  "name" : "HelloWorld"
  </code></pre>
  
  <p>In mongodb, my Guid was transformed into a UUID (say my JMongoBrowser) and is displayed as 46eb229f-b493-5630-b0d7-aa00499fafa0.</p>
  
  <p>But when I access my rest webpage, It's cutted in two parts (a binary, and a type). So how can I cast it into C# object ?</p>
  
  <p>Thanks</p>