Fix type of in Type.parse