asBsonNull

fun asBsonNull(): BsonNull

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

Return

a BsonNull

Throws

if this value is not of the expected type