Fix unchecked casts.