Need to cast Double class to check if the parameter is null