[BUGFIX] Add missing int-cast for checking uid zero