Edit in JSFiddle

$.cookie("test", "a,b,3");
var arr = $.cookie("test").split(",");
var a = arr[0];
var b = arr[1];
var c = Number(arr[2]);
$("body").append(typeof a + " : " + a + "<br>");
$("body").append(typeof b + " : " + b + "<br>");
$("body").append(typeof c + " : " + c + "<br>");