Get the type of the HDU.
As opposed to readCategory(), the return value of this method can be tested for equality, e.g.: