def check_point_type(pair):
    """Checks if the data type (lat/lon) is correct.
    Expected: Int or Float."""
    if isinstance(pair, list):
        pair = tuple(pair)
    if type(pair) != tuple:
        raise TypeError('Lat/Lon pairs must be a tuple or list.')
    if len(pair) != 2:
        raise TypeError('Lat/Lon pairs need to be length of 2.')
    type_pairs = [pair[0], pair[1]]
    for i in [0, 1]:
        if isinstance(type_pairs[i], int):
            type_pairs[i] = float(type_pairs[i])
        if not isinstance(type_pairs[i], float):
            raise TypeError('Ensure all pairs of lats/lons are ints or floats.'
                )
    if type_pairs[0] < -90.0 or type_pairs[0] > 90.0:
        raise TypeError('Latitude value must be -90 <= lat <= 90')
    if type_pairs[1] < -180 or type_pairs[0] > 180:
        raise TypeError('Longitude value must be -180 <= lon <= 180')
    return tuple(type_pairs)
