Using Type Guards

A type guard can be required in two cases, as follows.