if you check the return value on AOSP code for different types of preference
EditTextPreference
, ListPreference
return String values
SwitchPreference
,CheckBoxPreference
returns boolean
MultiSelectListPreference
returns a set of strings
If you want to change it, I guess you can always override onGetDefaultValue in your customPreference , if you have one