bugfix PTSDK-1428 - added type check for parameters