CommonAPI: shared CPP: fix string compare for BOOL convert