bson to struct