com.github.themrmilchmann.kraton.lang.java / cast

cast

fun cast(from: AbstractJvmType, to: AbstractJvmType, value: String): String (source)

Casts a value to another type (excluding unnecessary casts).

Parameters

from - the initial type

to - the desired type

value - the value to be cast

Return
the casted value

Since
1.0.0