<?xml version="1.0"?>
<clause number="13.2.2" title="Explicit enumeration conversions">
  <paragraph>The explicit enumeration conversions are: <list><list_item> From <keyword>sbyte</keyword>, <keyword>byte</keyword>, <keyword>short</keyword>, <keyword>ushort</keyword>, <keyword>int</keyword>, <keyword>uint</keyword>, <keyword>long</keyword>, <keyword>ulong</keyword>, <keyword>char</keyword>, <keyword>float</keyword>, <keyword>double</keyword>, or <keyword>decimal</keyword> to any <non_terminal where="11.1">enum-type</non_terminal>. </list_item><list_item> From any <non_terminal where="11.1">enum-type</non_terminal> to <keyword>sbyte</keyword>, <keyword>byte</keyword>, <keyword>short</keyword>, <keyword>ushort</keyword>, <keyword>int</keyword>, <keyword>uint</keyword>, <keyword>long</keyword>, <keyword>ulong</keyword>, <keyword>char</keyword>, <keyword>float</keyword>, <keyword>double</keyword>, or <keyword>decimal</keyword>. </list_item><list_item> From any <non_terminal where="11.1">enum-type</non_terminal> to any other <non_terminal where="11.1">enum-type</non_terminal>. </list_item></list></paragraph>
  <paragraph>An explicit enumeration conversion between two types is processed by treating any participating <non_terminal where="11.1">enum-type</non_terminal> as the underlying type of that <non_terminal where="11.1">enum-type</non_terminal>, and then performing an implicit or explicit numeric conversion between the resulting types. <example>[Example: For example, given an <non_terminal where="11.1">enum-type</non_terminal> E with and underlying type of <keyword>int</keyword>, a conversion from E to <keyword>byte</keyword> is processed as an explicit numeric conversion (<hyperlink>13.2.1</hyperlink>) from <keyword>int</keyword> to <keyword>byte</keyword>, and a conversion from <keyword>byte</keyword> to E is processed as an implicit numeric conversion (<hyperlink>13.1.2</hyperlink>) from <keyword>byte</keyword> to <keyword>int</keyword>. end example]</example> </paragraph>
</clause>
