Removed unecessary casts.