string tags = \"9,3,12,43,2\" List TagIds = tags.Split(\',\');
This doesn\'t work cause the split method returns a string[]
A little LINQ goes a long way:
List TagIds = tags.Split(',') .Select(t => int.Parse(t)) .ToList();