force casting to integer for primary key