asBytes

Casts this DocumentSource as a Bytes and retrieves its kotlin.ByteArray value. Throws an exception if the DocumentSource is not a Bytes.