There is not shortcut to it but one of the better way is to define the Type of data you intend to receive in Get/Post and then validate when sending as well as when receiving.