Cast file id's to int so we can compare them properly