helper method
workaround to https://github.com/MattTuttle/mongo-haxe-driver/issues/5