LPS-40315 Use overloading instead of checking class type

Hi Shuyang.

According to profile, most time(more than 80%) the "value" passed in is not neither Boolean nor Number, so I changed it to use overloading instead of checking class type every time.


Thanks.
Tina.