specify cast method in change migration