Use `decltype()` to deduce the actual type