When converting to TypeScript I made a couple of shortcuts by typecasting to `any`, which resolves type issues by bypassing the types...