$typeAlias is a string not a integer