Adds typecasting helper for boolean strings.