Parsing primitive types