Best approximations to random variables based on trimming procedures