Is there a good reason for this? I often find myself writing functions templated for both real scalars scalar or autodiff scalars, and if I want to read the real scalar value out of this templated code, I need to jump through some hoops that could be avoided by just using a static_cast<double>(maybe_autodiff_scalar) if these lines were uncommented.
Alternatively, is it possible to enable this conversion externally without modifying eigen's source but to still have it as work as transparently?