Camtasia supports export to the AVI format by default, so you can use the existing share and publish function to export projects as .avi videos.
.cam file probably originates from some very old version of Camtasia, so the latest versions of the program may not support it. You would have to use some older version to achieve this type of cam to avi conversion.