removed not needed typecasts. thanks Thomas