title: How can I suppress unchecked cast warnings?
body: <p>Having the following code:</p>
  
  <pre><code>fun doSomething(): List&lt;String&gt; {
  
      val test: List&lt;*&gt; = arrayListOf("test1", "test2")
  
      return test as List&lt;String&gt;
  }
  </code></pre>
  
  <p>Is there some way to suppress the unchecked cast warning that comes up in the last line? I tried to use the standard Java way <code>@SuppressWarnings("unchecked")</code> at the method level, but it didn't work.</p>