title: How to convert from Map[String,Any] to (String, String)*
body: <p>A function takes an input as follow:</p>
  
  <pre><code>myFunction("param1" -&gt; "value1", "param2" -&gt; "value2")
  </code></pre>
  
  <p>Parameter type in myFunction is <code>(String,String)*</code>. Now, I want to store these parameters in a map object like this:</p>
  
  <pre><code>val p = Map("param1" -&gt; "value1", "param2" -&gt; "value2")
  </code></pre>
  
  <p>The reason is because I want to pass p around before I pass it into <code>myFunction</code> like this: <code>myFunction([converting p to (String,String)* here])</code> and I cannot change the parameter type of <code>myFunction</code>. How can I convert <code>p</code> to <code>(String, String)*</code>?</p>