[eluser]boltsabre[/eluser]
>> but I wanted it to be automatically
That's not PHP. Other languages you have to declare the variable type when you create it, but not PHP. It has its advantages and disadvantages - it's pretty intuitive in it's automatic type casting, but yeah, it can cause some problems. I guess that's why they gave us the tripple equal sign operand === ;-)