convert

abstract fun convert(instance: FROM): TO?(source)

Converter an instance of type FROM to type TO.

Return

converted type. return null if it cannot be converted.

Parameters

instance

instance of type FROM

See also

Throws

if it cannot be converted.