Cast hour of day and day of week as integer