Use ```CDenseFeatures::obtain_from_generic(CFeatures* const)``` for this please. It's got a nice check and that way we reduce the number of explicit casts we do in the code.