return new StringLiteral((String) object);
}
}
if (type.equals(BOOLEAN)) {
return new BooleanLiteral(object.toString());
}
Signature signature = FunctionRegistry.getMagicLiteralFunctionSignature(type);
Expression rawLiteral = toExpression(object, FunctionRegistry.type(type.getJavaType()));
return new FunctionCall(new QualifiedName(signature.getName()), ImmutableList.of(rawLiteral));