import json


def msg_value_to_dict(msg):
    """Function to convert Kafka Message Value to a Dict

    :type msg: Kafka Message
    :param msg: The Kafka message

    :rtype: Dict
    :returns: The Kafka message value as a Dict

    """
    return json.loads(msg.value().decode('utf-8'))