[FIX] Fixes compiler warnings for comparison of different types.