test Cast exception