remove explicit int cast of the id field