fix issue 20 to automatic parse different type

Please take a look if it works for you.

I tested on my application that integer and boolean.