Decode type