Avoid direct type comparisons (#7085) Avoid direct type comparisons. (cherry picked from commit a8809401ee) Co-authored-by: Felix Fontein <felix@fontein.de>
a8809401ee