title: Pass different type of value to single function as an arguments in Spark/Scala
body: <p>I am new in Scala. Can I Pass different type of values to single function as an argument in spark/scala. </p>
  
  <p>I mean Generic function that can access Every type of value as an arguments(ex String,Int,Double etc.)</p>
  
  <p>Ex.
  Here bellow function will accept only Int value.</p>
  
  <pre><code>def Test(firstColumn : Int,secondColumn : Int) : (Int) = {
   //My Code here   
  } 
  val FLAG :Int =  Test(2,4)
  </code></pre>
  
  <p>Please suggest me something.</p>
  
  <p>Thanks in advance</p>