more work on typecasting issues.