BUG: Fix typos in conversion_utils

Unparenthesized logical expressions in if statements caused clang
compilation failure on OSX.