asValue

abstract fun asValue(): BsonValue(source)

Returns the BsonValue equivalent to this array.

The returned value has type BsonType.Array and its BsonValue.decodeArray method returns this array.