title: How to convert slice to fixed size array?
body: <p>I want to convert a fixed size array from a slice:</p>
  
  <pre><code>func gen(bricks []Brick) {
      if len(bricks) == 16 {
          if check(Sculpture{bricks}) {
              var b [16]Brick = bricks[0:16];
          }
       }
  }
  </code></pre>
  
  <p>But this results in:</p>
  
  <pre><code> cannot use bricks[0:16] (type []Brick) as type [16]Brick in assignment
  </code></pre>
  
  <p>How to convert a slice into a fixed size array?</p>