casting fixes all the warnings, but should stop returning NULL on DNF