TypecastingTechniques and Uncertainity
<p>I am trying to filter the user's input using Typecasting techniques. But I dont know all of them, upon searching for more techniques used for Typecasting, I found a lot of issues discussed related to typecasting being uncertain and unsafe. </p>

<p>Please tell me How to typecast values in several formats like int and others? I only know how to typecast int by using <code>(int)$variable</code>. And Are they safe to rely on?</p>
