Expression Value in Jasper Report: "Cannot cast from String to Boolean" error

jasper-reports, java

Solution

OK, I fixed it. I changed `$F{Personel_ODEME}`'s type to String, then it worked like a charm.

Problem

This is my expression code: ``` ($F{Personel_ODEME}.equals(Boolean.TRUE)) ? "PAID" : "NO PAID" ``` If Personel is paid, her/his Jasper tax report will read `PAID`, otherwise `NO PAID`. In the DB, this field is Boolean type, but the expression is returning a String type. So I am getting a `Cannot cast from String to Boolean` error.

Original source