Always use canonical type with isSafeClassName()