Integer casting to keep Xcode and iOS 7 happy. Fixed an editors letter display bug on iPad.