Hi, I'm new to iReport and I've been trying to use "Print when expression" to change the value of a field in the database from 0 or 1 (I use MySQL, so no boolean) to Yes No. I've searched around but none of the solutions seems to be working for me. No matter what I try, I always get the same error at compile time : Error filling print... java.lang.String cannot be cast to java.lang.Boolean Integer.parseInt($F{myFieldName}) == 1 ? "Yes" : "No" I've tried various ways to do the comparison, including converting both operands to String or whatever. Fun thing, my comparison seems to "work", as in if I don't put in the if, my report compiles without problem but as soon as I add it the error shows up. I've also made sure my field type (Expression class) is set to java.lang.String Thanks.