title: Custom type conversion in Karate
body: <p>As Karate supports <a href="https://github.com/intuit/karate#type-conversion" rel="nofollow noreferrer">type conversion</a>, I was wondering if it is possible to write a custom type conversion in such a way that I could write something similar to this in my .feature file</p>
  <pre><code>customType customTypeResponse = response
  </code></pre>
  <p>which should have the same semantic as</p>
  <pre><code>yaml yamlResponse = response
  </code></pre>
  <p>but for customType instead of yaml.</p>
  <p>I think I found the <a href="https://github.com/intuit/karate/blob/master/karate-core/src/main/java/com/intuit/karate/Script.java#L604" rel="nofollow noreferrer">code enabling the custom type conversion</a>. But I am not sure about the extensibility.</p>
  <p>Thus the shortest way might be to use the <a href="https://github.com/intuit/karate#java-interop" rel="nofollow noreferrer">Java interop</a> enabling something like this</p>
  <pre><code>def customTypeResponse = CustomType.convert(response)
  </code></pre>
  <p>Please let me know of any possibiliy of type conversion.</p>