How to use itk.cast_image_filter (in Python)?

Hi Constantine,

For ttype, the argument is a Python tuple of the template type parameters for the filter, the input image type and the output image type.

It is easier to use cast_image_filter via the astype method on Image, which just takes the output pixel type, i.e.

deformation_field_d = deformation_field.astype(itk.Vector\[itk.D, 2\])