cast error on amd