remove extra cast