[PLAT-4076] Added methods that take an expected Convention type and throw an exception if the returned convention is not of this type