Lastest version of the API removed the event for begin cast (seen below). It would be awesome if this functionality was added back.
Lua Code:
EVENT_BEGIN_CAST (string unitTag, string actionName, number startTime, number endTime, bool isChannel, integer barType, bool blockable, bool interruptible, bool isChargeUp)