changed casting types