def c_array(ctype, values):
    """Util function that converts a python list variable
    into a C++ array variable whose elements have the selected Ctype Dtype
    :param ctype: The selected C++ Dtype of the C++ array elements
    :param values: Python list to be converted
    :return: A C++ Array variable whose elements have the selected Ctype Dtype
    """
    return (ctype * len(values))(*values)