int getInt(int number) { final v = get(number); if (v is bool) return v ? 1 : 0; if (v is num) return v.toInt(); return 0; }