fix cast in getBoolean