```python
def min_val(listval):
    if not listval:
        return None

    min_value = listval[0]

    for current_item in listval[1:]:
        try:
            # Attempt a direct comparison. This works for elements of the same
            # or compatible types (e.g., int and float).
            is_smaller = current_item < min_value
        except TypeError:
            # If direct comparison fails, the types are not compatible.
            # To create a consistent ordering, we fall back to comparing the
            # string names of their types. This provides a stable, albeit
            # arbitrary, way to determine which element is "smaller".
            type_name_current = type(current_item).__name__
            type_name_min = type(min_value).__name__
            is_smaller = type_name_current < type_name_min

        if is_smaller:
            min_value = current_item

    return min_value
```