In at least one of your cells the font size is System.DBNull.
You have to check the type of Size before casting it:
if(Convert.IsDBNull(xlWorksheet.Cells[num, 1].Font.Size))
{
}
else if((int)xlWorksheet.Cells[num, 1].Font.Size == 14)
{
// do Something....
}