Get an Object from the preferences
Value if found, else the defValue
Key of the value
Default value
Type of the object