class="externalLink">Function</a>&lt;K,&#8203;T&gt;&nbsp;func)</pre>
<div class="block">Returns a list view for the array. The value and the type of the elements
 in the list is specified by the <code>func</code> argument.
 <p>This method can be used to obtain a list of the unwrapped types, such as
 <pre><code>
     List&lt;String&gt; strings = ary1.getValuesAs(JsonString::getString);
     List&lt;Integer&gt; ints = ary2.getValuesAs(JsonNumber::intValue);
 </code> </pre>
 or a list of simple projections, su