IDEX-383: add checking for the type