Add type guard.