title: No exact matches in call to initializer in array (Swift/SwiftUI)
body: <p>I am trying to display my array in a ForEach with its own properties</p>
  <p>I have the following array:</p>
  <pre><code>[Exercise(name: &quot;Pull-up&quot;, reps: 10, time: 45),
  Exercise(name: &quot;Push-up&quot;, reps: 10, time: 30),
  Exercise(name: &quot;Sit-up&quot;, reps: 20, time: 60),])
  </code></pre>
  <p>And I can display its name but if I use the reps or time property it tells me:</p>
  <p>&quot;No exact matches in call to initializer&quot;</p>
  <pre><code>HStack {
    Text((workout[value] as! Exercise).reps).foregroundColor(.white) &lt;-- error
    Text((workout[value] as! Exercise).name).foregroundColor(.white) &lt;-- works
  }
  </code></pre>