adding Typed.Cast