I can see that you didn't add this line, but it doesn't seem to make sense. The way I read it is "if type of var 'value' is a boolean, then convert it to type boolean". Huh?