convert

abstract fun convert(var1: T): R

Converts a value of type T to type R.

Return

the converted value

Parameters

var1

the value to convert

Throws

CommandSyntaxException

if the conversion fails due to invalid input