Added these casts to be consistent.