You can typecast in JSDoc:
const x = /** @type {CastedToType} */(value);
NOTE the braces (), they are important.
()