PDI-10840, PDI-10409 - Fix samples failed because of strict number conversion

5 samples were updated