private fun <T : Any> mapToInlineValueClass(value: Any?, targetClass: KClass<T>): T

Maps a value to an instance of an inline value class If already is an instance of the class, this is a NO-OP

Return

the wrapped value

Parameters

value

the value to map

targetClass

the class to create an instance of