allow indexing cast properties directly

e.g. `cast["date"]` is short for `cast.properties["date"]`
add tests