as(_:)

Attempts to load an instance of Identifier from this variant.

BSON.AnyValue.swift:266
func `as`(_: BSON.Identifier.Type) -> BSON.Identifier?

Returns

The payload of this variant if it matches id(_:) or pointer(_:_:), nil otherwise.