asInt32

fun asInt32(): BsonInt32

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

Return

a BsonInt32

Throws

if this value is not of the expected type