remove warning of cast