On Tue, 14 Mar 2017 13:05:14 +0100, Sönke Ludwig wrote:

There is a subtle difference: to <-> get. The problem is that to!string has to work in a consistent way for any type of BSON value stored. Using a JSON representation was just the most obvious approach.

get!T on the other hand is meant to actually extract the raw value.

Aha, I missed get!T. Is it documented somewhere?