fix bad cast from DataFieldBoolean to DataFieldEnum
 change need this need to be merged in 5.0 branch