Typecast service code