title: Good examples using 'union' with 'enum'?
body: <p>What I try to understand the following: </p>
  
  <p>'Union' acts like like a variable and I can store value in it of different types.
    What if in it stored value of type 'float', but I read it as 'short'?</p>
  
  <p>Is there any ways how I can be sure about type of value I am going to retrieve from union ?</p>
  
  <p>How can I deal with kind of cases ?</p>
  
  <p>I saw a note somewhere, He talked about using 'enum' for cases like this, but there was no good enough explanation of why ? </p>
  
  <p>Could you explain why is it useful/safe using 'unions' with 'enums', please ? Or show some examples.  </p>
  
  <p>Thanks in advance, Nick. </p>