Updated bson protocol implementation to use more permissive interface return type and type assertions.