Added type coercions to the Ant code.