Add cast/generic example