Cast to fix ambiguous call on "id"