Fix for truthiness check in type conversions