@override int getAsInteger() { final ref = TIntRef(0); if (!getValue(ref)) return 0; return ref.value; }