peterm
committed
on 20 Jan 04
further fixes related to simulation casting