allow type casting in copy edge and node attribute functions
extend tutorial examples