//similar to typeCasting in other languages //using as const myVar = (req.query.param as unknown) as string; //using angle bracket notation const myVar = <string> (<unknown> req.query.param);