Removed a faulty typecast.