Type verification on recursive function

It happens if some properties are passed as string and not numbers:

scheduler.schedule(id, {
		dayOfWeek : [0],
		hour      : "12",
		minute    : "00"
	}, function(){
		console.log("*********************** " + id + "********************");
	}
);

The program hangs in a infinite loop.