Pentaho Analysis - Mondrian

Using the generate command, cast and calculated measures causes ClassCastException