asDouble

fun asDouble(): BsonDouble

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

Return

a BsonDouble

Throws

if this value is not of the expected type