Fix casting on course year