Cast operator + type alias + unit test