Fix compilation failure in Utils

The assert referenced the instance of kind and not the constructor argument.