[Parser] Added type checking