Function toLiteral