minor datatype fix

The fixes are suggested by Xcode, and are required to test the project