diff --git a/src/settings.cpp b/src/settings.cpp
index 537a20a3f86bc6e7287ff8477850e751901bc6a6..baa80cb27016a58e15f5ae56122b20f216d3caaf 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -6,13 +6,13 @@ Preferences preferences;
 
 void loadSettings() {
   preferences.begin("settings", true); // true = readonly
-  defaultBrightness = preferences.getUInt("brightness", 50);
-  gameInterval = preferences.getUInt("interval", 100);
-  colorMode = preferences.getUInt("color_mode", 0); // 0 = static, 1 = simple RGB, 2 = dynamic aging (decay)
-  colorDecay = preferences.getUInt("color_decay", 5);
-  colorR = preferences.getUInt("color_r", 255);
-  colorG = preferences.getUInt("color_g", 255);
-  colorB = preferences.getUInt("color_b", 255);
+  defaultBrightness = (uint8_t)preferences.getUInt("brightness", 50);
+  gameInterval = (uint16_t)preferences.getUInt("interval", 100);
+  colorMode = (uint8_t)preferences.getUInt("color_mode", 0); // 0 = static, 1 = simple RGB, 2 = dynamic aging (decay)
+  colorDecay = (uint8_t)preferences.getUInt("color_decay", 5);
+  colorR = (uint8_t)preferences.getUInt("color_r", 255);
+  colorG = (uint8_t)preferences.getUInt("color_g", 255);
+  colorB = (uint8_t)preferences.getUInt("color_b", 255);
   preferences.end();
   displayBrightness(defaultBrightness);
   setGameColor(colorR, colorG, colorB);