getLiteral

Get the literal value of the expression as given type.

Return null if expression is not literal or can not be casted to given type.

inline fun <T> getLiteral(): T?