asString

fun asString(): BsonString

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

Return

a BsonString

Throws

if this value is not of the expected type