Remove literals from primitive type checking