'transform' now accepts closure.
Added 'as' Message conversion for 'transform' closure.
Changed to use currying instead of anonymous class.