title: Convert an integer to an enum value
body: <p>I have the following code:</p>
  
  <pre><code>type ActorState int
  
  const (
      Unverified ActorState = 1 + iota
      Verified
      Banned
  )
  </code></pre>
  
  <p>And I want to do this in my implementation.</p>
  
  <pre><code>i := 1
  a : ActorState 
  a = ActorState(i)
  </code></pre>
  
  <p>But I get the error, <code>Cannot convert expression of type int, error to type ActorState</code>. </p>
  
  <p>How do I convert it then?</p>