boxed

fun Type.boxed(): Type

Converts a type to its corresponding boxed type if it is primitive. Else returns the type itself.

Return

the boxed type of the type if it is primitive or the type itself.