Use provided KCalCore::Todo to store Task attributes instead of converting Todo object to Task private attributes and then convert it back again to a Todo object when storing it.