convert

abstract fun <A, B> convert(from: KType, to: KType, converter: (A) -> B)

Defines how to convert from: A to to: B.

Note: In most cases using convert<Type>().with { } is more convenient, however if you only have KType, this method can be used.

For more information: See convertTo on the documentation website.