asBoolean

fun asBoolean(): BsonBoolean

Gets this value as a BsonBoolean if it is one, otherwise throws exception

Return

a BsonBoolean

Throws

if this value is not of the expected type