asBsonUndefined

fun asBsonUndefined(): BsonUndefined

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

Return

a BsonUndefined

Throws

if this value is not of the expected type