Fix implicit conversion

Fixes building with Xcode 5.1