Hi Hema,
It does not happen by default. PI works with XML and it does not have any issue with different types. But if you want an explicit validation, you can go for Validation by Adapter or Integration Engine.
Check below document to get better idea:
Regards,
Nabendu.