Be sure to always save the right type class MyClass{ @CastBoolean isBoolean } CastBoolean, CastToStringifiedJSON, CastInteger, CastString