This cast is only necessary because the API dox on odtDocument.convertCursorToDomRange should actually be @returns {!Range}