minor update to cast