Added "unsigned int" to typecast to avoid "Implicit conversion loses
integer precision" error which caused a failed build in Xcode.