Returns the ids with type int. See idsAsInt.
int
List<int> get idsNotNullAsInt => ids?.whereType<int>().toList() ?? [];