Cast ids as INT in various SQL queries