/**
 * This function takes in two sets, set1 and set2, and returns a list that contains all the elements that are common to both sets.
 *
 * @param set1 A set containing elements of any data type.
 * @param set2 A set containing elements of any data type.
 * @return A list of elements common to both set1 and set2.
 *
 * Example:
 * convertSetsToList(setOf(1, 2, 3), setOf(2, 3, 4)) should return [2, 3]
 */
fun convertSetsToList(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonElements = set1.intersect(set2)
    return commonElements.toList()
}
/**
 * This function takes in two sets, set1 and set2, and returns a list that contains all the elements that are common to both sets.
 *
 * @param set1 A set containing elements of any data type.
 * @param set2 A set containing elements of any data type.
 * @return A list of elements common to both set1 and set2.
 *
 * Example:
 * convertSetsToList(setOf(1, 2, 3), setOf(2, 3, 4)) should return [2, 3]
 */
fun convertSetsToList(set1: Set<Any>, set2: Set<Any>): List<Any> {
/**
 * This function takes in two sets, set1 and set2, and returns a list that contains all the elements that are common to both sets.
 *
 * @param set1 A set containing elements of any data type.
 * @param set2 A set containing elements of any data type.
 * @return A list of elements common to both set1 and set2.
 *
 * Example:
 * convertSetsToList(setOf(1, 2, 3), setOf(2, 3, 4)) should return [2, 3]
 */
fun convertSetsToList(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonElements = set1.intersect(set2)
    return commonElements.toList()
}