Fixed crash on complex cast.