asBsonMaxKey

fun asBsonMaxKey(): BsonMaxKey

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

Return

a BsonMaxKey

Throws

if this value is not of the expected type