Lightning Components & AuraEnabled method parameters: What’s working and what’s not
Fabien Taillon
12214

The need for the following line fills me with horror.

myInteger = Integer.valueOf(myInteger);

From your SFSE post, sounds like there is already bug W-2544431 for this but no public known issue yet.