update for karta master
add `defray` method for CastCollection with a test