MongoDB deserialization in C# when custom id field
<p>I've got following structure in the database:</p>

<pre><code>{
      "_id" : ObjectId(""),
      "title" : "something",
      "id" : 1,
      (...)
}
</code></pre>

<p>Basicly i want to retrive data from following collection to my Class:</p>

<pre><code>[BsonIgnoreExtraElements]
public class Topic
{
    [BsonElement("id")]
    public int Id { get; set; }
    [BsonElement("title")]
    public string Name { get; set; }
}
</code></pre>

<p>The problem is this code doesn't work -> executes with error message: 
 <em>Cannot deserialize a 'Int32' from BsonType 'ObjectId'</em>,
but this one does:</p>

<pre><code>[BsonIgnoreExtraElements]
public class Topic
{
    [BsonIgnore]
    public int Id { get; set; }
    [BsonElement("title")]
    public string Name { get; set; }
    [BsonElement("id")]
    public int IdTest { get; set; }
</code></pre>

<p>Seems like deserialization desperatly tries to match class property with name "Id" with the ObjectId in database which is not correct because i explicitly declare that i want to match it with BsonElement("id") and not ("_id").</p>

<p>I appreciate any ideas how to make it works as I need to.</p>