as(_:)

Attempts to load an instance of Bool from this variant.

BSON.AnyValue.swift:171
func `as`(_: Bool.Type) -> Bool?

Returns

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