rm useless cast