Function to get an int from the room
int? getInt(String key) { var cdata = getKey(key); try { return cdata as int; } catch (e) { return null; } }