asLiteral

Returns the specified value as a literal of type T.