title: Get typesafe config value as Array of Case class
body: <p>I have a conf file as below in HOCON Config format.</p>
  
  <pre><code>mapConfig :[
      { name = "AAA", value = "BBBB" },
      { name = "CCC", value ="DDD" },
      { name = "EEE", value ="FFF"}]
  </code></pre>
  
  <p>Suppose i have a case class like below,</p>
  
  <pre><code>case class ConfigData (val name: String, val value: String)
  </code></pre>
  
  <p>I tried to get the config value as </p>
  
  <pre><code>Array [ConfigData["AAA","BBBB"], ConfigData["CCC","DDD"],ConfigData["EEE","FFF"]]
  </code></pre>
  
  <p>I ran the below code which is not returning the data in expected format. I am getting error as "missed parameter type for expanded function". </p>
  
  <pre><code>val config = ConfigFactory.parseResources("config-prop")
  val configArray = config.getConfigList("mapConfig").asScala.map (ConfigData (_,_) )
  </code></pre>
  
  <p>How to solve this issue and get the value in desired format? </p>