根据类型将参数值转换为布尔值。
转化
toBool(<parameter>)
toBool(<decimal>)
toBool(<boolean>)
toBool(<string>)
toBool(<integer>)
返回布尔值。
toBool("true")
toBool(1)
返回真。
toBool("this is not a boolean")
返回假。