Cleanup type checks.