Querying of casts by number instead of id