asArray

fun asArray(): BsonArray

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

Return

a BsonArray

Throws

if this value is not of the expected type