asJavaScriptWithScope

fun asJavaScriptWithScope(): BsonJavaScriptWithScope

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

Return

a BsonJavaScriptWithScope

Throws

if this value is not of the expected type