Map bson value to object