Added missing casts.