Avoid unneccesary cast