Remove Class.cast()