В groovy:
println 'test' as Boolean //true println 'test'.toBoolean() //false println new Boolean('test') //false
Кто-нибудь может прояснить это поведение?