Fix Slot._get SQL segment cast