Type Assertion (TypeScript)

A type assertion tells the compiler to treat a value as a specific type, using the `as` keyword. You are overriding TypeScript's inference because you know…