Function as

Bson as(T) (
  in Value v
)
if (is(T == Bson));