title: Cannot map mutableList to string array KMM -> Swift
body: <p>I am new to swift and I've been trying to map this array of employees to an array of employee names (Strings). What am I doing wrong?</p>
  <p>This is a KMM project so the object definitions are written in Kotlin</p>
  <pre><code>data class Employee( //kotlin
      val id:String,
      val name:String,
      val isHere:Boolean
  )
  
  data class Work( //kotlin
      val id:String,
      val name: String,
      var employees: MutableList&lt;Employee&gt;,
      val todoToday: Boolean
  )
  
  
  
  struct SideworkCardView: View {
      var work : Work
      var body: some View {
          VStack(alignment: .leading) {
              Text(work.name.capitalized)
                  .font(.system(size: 25, weight: .medium))
                  .foregroundColor( .black )
              Text(
                  work.employees.map( { (employee) -&gt; String in
                      employee.name //ERROR HERE
                  }).joined(separator: &quot;, &quot;)
              )
              .font(.system(size: 15, weight: .medium))
              .foregroundColor(.black)
          }        
      }
  }
  </code></pre>
  <p>Error:
  Value of type 'NSArray.Element' (aka 'Any') has no member 'name'</p>