adjust for Scala: TypeSafeCursor