input: Write a python function to convert a value to an integer if possible.
  assert convert_to_integer("123") == 123
  assert convert_to_integer("abc") == "abc"
  assert convert_to_integer("10.5") == 10
  assert convert_to_integer([1, 2, 3]) == [1, 2, 3]
output: def convert_to_integer(value):
      try:
          return int(float(value))
      except (ValueError, TypeError):
          return value