id integer type casting in domain