type_caster_generic: fix compiler error when casting a T that is implicitly convertible from T* (#5873) * type_caster_generic: fix compiler error when casting a T that is implicitly convertible from T* * style: pre-commit fixes * Placate clang-tidy * Expand NOLINT to specify Clang-Tidy check names --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>