Adjusted prefs values to appropriate types, and created helpers for returning typed values