def _cast(self, value):
        """ Cast the specifief value to the type of this setting. """
        if self.type != 'text':
            value = utils.cast(self.TYPES.get(self.type)['cast'], value)
        return value
Cast the specifief value to the type of this setting.