code: def get_typecast_value(self, value, type):
      
  
      if type == entities.Variable.Type.BOOLEAN:
        return value == 'true'
      elif type == entities.Variable.Type.INTEGER:
        return int(value)
      elif type == entities.Variable.Type.DOUBLE:
        return float(value)
      else:
        return value
docs: Helper method to determine actual value based on type of feature variable.
  
      Args:
        value: Value in string form as it was parsed from datafile.
        type: Type denoting the feature flag type.
  
      Return:
        Value type-casted based on type of feature variable.