Add explicit cast on id size