Removed an unsafe cast.