Fixed CourseNum to Int

added a function to do the converting