asTimestamp

fun asTimestamp(): BsonTimestamp

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

Return

an BsonTimestamp

Throws

if this value is not of the expected type