title: How to get manifest in the pattern matching
body: <p>I want to the get the manifest of one List's inner type like following and pass it to another function, how can I do that ? Thanks    </p>
  
  <pre><code>  def f(any: Any) = any match {
      case x: Int =&gt; println("Int")
      case a: List[_] =&gt; // get the manifest of List's inner type, and use it in the function g()
    }
  
    def g[T:Manifest](list:List[T]) = {}
  </code></pre>