While convert document to PDF with the latest version of Aspose.Words i.e. 16.2.0,it throws a catch"Unable to cast object of type ".the document have upload.
Thanks for your inquiry.
While using the latest version of Aspose.Words i.e. 16.2.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-13381. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.