Merge "Fix cast of RestrictedSwitchPreference to SwitchPreference" into main