Yes, it is. Note that was just a typo when I hand typed the code over as I was trying to get the essence of the problem. The actual code is far far too large to post here.
If you enter the code segment I show above, unfortunately it DOES NOT recreate the problem as it works (correcting typos of course).
What is odd is if I change the type in my full code for SunStatus and PrevSunStatus to byte it 'works'. If I go back to int the problem comes back.