Write Python code snippets that will convert comma separated values to a list of dictionaries.
name,age
Albert,22
Bob,24
Charles,20
csv_data = [
 {'name': 'Albert', 'age': 22},
 {'name': 'Bob', 'age': 24},
 {'name': 'Charles', 'age': 20}
]