def a = null String b = a.toString() String c = a as String println b println c println b instanceof String println c instanceof String