'x instanceof A' type guard can be unsound in one of the following two cases:
Type of x is not related to 'A'
Type of x is 'A' or a subtype of 'A'