Correct casting error.