Hello Folks, Most of us know that, we can pass parameter as a String to methods in TestNG class. Is it really like that? No. Its not. We can pass parameters in whatever data types we required. TestNG will convert them automatically to required data type. We will see an example below: Output: Note: 1.