prevent an error being thrown due to parameter typecasting