title: What is exactly this error I'm getting here? (iOS, Xcode, Healthkit)
body: <pre><code>func reuqestConnection(){
      var permReq: Set? = [HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN),
                          HKObjectType.quantityType(forIdentifier: .restingHeartRate),
                          HKObjectType.quantityType(forIdentifier: .heartRate)]
      if let healthStore = healthStore{
          healthStore.requestAuthorization(toShare: nil, read: permReq){ (success, error) in
              if(!success){
                  //redirect to error view to try again.
              }
          }
      }
  }//func ends
  </code></pre>
  <p>That's the code, there's nothing else apart from the init function which just defines the HKHealthStore. The error I get is while requesting Authorization for</p>
  <pre><code>Cannot convert value of type 'Set&lt;HKQuantityType?&gt;?' to expected argument type 'Set&lt;HKObjectType&gt;?'
  </code></pre>
  <p>I'm not sure what this means as I previously did not get this error. What am I supposed to be doing here?</p>