Rework 'any' type checks.