Hello, I'm working on Jaspersoft Studio and I want to update a Static Text Field based on owner field i receive from the database. Lets say if owner is equsl to "JTI" then display "Ref Number" else display "Item Num" as static text. This is what I tried putting in Print When Expression: $F{OWNER}.equals("JTI") ? "Ref Number" : "Item Num" for the static text field but I'm getting the error java.lang.String cannot be case to Java.lang.Boolean. Can someone help me with this?