asBinary

fun asBinary(): BsonBinary

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

Return

an BsonBinary

Throws

if this value is not of the expected type