Let the scan node accessor centrally handle the asserting and casting and return a PersistentTable* instead of having it in 4 or 5 places.