You no longer get an error containing “cast object type” when you prepare an invoice in the Sales orders (SO301000) window.